diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/protocols/oscar/aim/aimchatsession.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/oscar/aim/aimchatsession.h')
-rw-r--r-- | kopete/protocols/oscar/aim/aimchatsession.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/kopete/protocols/oscar/aim/aimchatsession.h b/kopete/protocols/oscar/aim/aimchatsession.h new file mode 100644 index 00000000..79c0685e --- /dev/null +++ b/kopete/protocols/oscar/aim/aimchatsession.h @@ -0,0 +1,77 @@ +// aimchatsession.h +// Copyright (C) 2005 Matt Rogers <[email protected]> + +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA +// 02110-1301, USA. + +#ifndef AIMCHATSESSION_H +#define AIMCHATSESSION_H + +#include "kopetechatsession.h" +#include "oscartypes.h" + +class Client; + +class AIMChatSession : public Kopete::ChatSession +{ +Q_OBJECT +public: + AIMChatSession( const Kopete::Contact* contact, Kopete::ContactPtrList others, + Kopete::Protocol* protocol, Oscar::WORD exchange = 0, + const QString& room = QString::null ); + virtual ~AIMChatSession(); + + /** + * Set the engine to use so that we can disconnect from the chat service + * properly + */ + void setEngine( Client* engine ); + + /** + * Get the name of the AIM chat room represented by + * this ChatSession object + * @return the name of the chat room + */ + QString roomName() const; + + /** + * Set the name of the AIM chat room represented by + * this ChatSession object + * @param room the name of the AIM chat room + */ + void setRoomName( const QString& room ); + + /** + * Get the exchange of the AIM chat room represented by + * this ChatSession object + * @return the exchange of the chat room + */ + Oscar::WORD exchange() const; + + /** + * Set the exchange of the AIM chat room represented by + * this ChatSession object + * @param exchange the exchange of the AIM chat room + */ + void setExchange( Oscar::WORD exchange ); + +private: + QString m_roomName; + Oscar::WORD m_exchange; + Client* m_engine; +}; + + +#endif |