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/groupwise/ui/gwchatpropsdialog.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/groupwise/ui/gwchatpropsdialog.h')
-rw-r--r-- | kopete/protocols/groupwise/ui/gwchatpropsdialog.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/kopete/protocols/groupwise/ui/gwchatpropsdialog.h b/kopete/protocols/groupwise/ui/gwchatpropsdialog.h new file mode 100644 index 00000000..058d6b20 --- /dev/null +++ b/kopete/protocols/groupwise/ui/gwchatpropsdialog.h @@ -0,0 +1,69 @@ +/* + Kopete Groupwise Protocol + gwchatpropsdialog.h - dialog for viewing/modifying chat properties + + Copyright (c) 2005 SUSE Linux AG http://www.suse.com + + Kopete (c) 2002-2005 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This library 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. * + * * + ************************************************************************* +*/ + +#ifndef GWCHATPROPSDIALOG_H +#define GWCHATPROPSDIALOG_H + +#include <kdialogbase.h> + +#include "gwchatrooms.h" + +class GroupWiseChatPropsWidget; +/** + * Dialog for viewing/modifying chat properties. + * Chatroom list dialog gets props from manager + * Chatroom list dialog opens chatpropsdlg using props, connects to OkClicked signal + * User makes changes + * CLD asks CPD for changes. + * CLD passes changes to manager + * manager sends ChatUpdate to server + * on success, manager updates own model. + + 1) Create dialog with populated widget from supplied Chatroom. + 2) Add readonly mode. + 3) Track which things changed? Easier to get the changed Chatroom back and diff in the manager, simpler api connecting + */ +class GroupWiseChatPropsDialog : public KDialogBase +{ + Q_OBJECT + public: + /** + * Construct an empty dialog + */ + GroupWiseChatPropsDialog( QWidget * parent, const char * name ); + /** + * Construct a populated dialog + */ + GroupWiseChatPropsDialog( const GroupWise::Chatroom & room, bool readOnly, + QWidget * parent, const char * name ); + + ~GroupWiseChatPropsDialog() {} + + bool dirty() { return m_dirty; }; + GroupWise::Chatroom room(); + protected: + void initialise(); + protected slots: + void slotWidgetChanged(); + private: + GroupWiseChatPropsWidget * m_widget; + GroupWise::Chatroom m_room; + bool m_dirty; +}; + +#endif |