diff options
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 <kopete-devel@kde.org> + + ************************************************************************* + * * + * 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 |