1 /* 2 Kopete Groupwise Protocol 3 chatcountstask.cpp - Task to update chatroom participant counts 4 5 Copyright (c) 2005 SUSE Linux Products GmbH http://www.suse.com 6 7 Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> 8 9 ************************************************************************* 10 * * 11 * This library is free software; you can redistribute it and/or * 12 * modify it under the terms of the GNU Lesser General Public * 13 * License as published by the Free Software Foundation; either * 14 * version 2 of the License, or (at your option) any later version. * 15 * * 16 ************************************************************************* 17 */ 18 19 #ifndef CHATPROPERTIESTASK_H 20 #define CHATPROPERTIESTASK_H 21 22 #include <qdatetime.h> 23 #include <qlist.h> 24 #include "gwchatrooms.h" 25 #include "gwerror.h" 26 #include "gwfield.h" 27 28 #include "requesttask.h" 29 30 /** 31 Get the current number of users in each chat on the server 32 33 @author SUSE Linux Products GmbH 34 */ 35 class ChatPropertiesTask : public RequestTask 36 { 37 Q_OBJECT 38 public: 39 ChatPropertiesTask(Task *parent); 40 ~ChatPropertiesTask(); 41 /** 42 * Specify which chatroom to get properties for 43 */ 44 void setChat(const QString &); 45 bool take(Transfer *transfer) Q_DECL_OVERRIDE; 46 /** 47 * Contains a list of the ACL entries for the specified chatroom 48 */ 49 QList< GroupWise::ChatContact > aclEntries(); 50 QString m_chat; 51 QString m_ownerDn; 52 QString m_description; 53 QString m_disclaimer; 54 QString m_query; 55 QString m_archive; 56 QString m_maxUsers; 57 QString m_topic; 58 QString m_creatorDn; 59 QDateTime m_creationTime; 60 uint m_rights; 61 QList< GroupWise::ChatContact > m_aclEntries; 62 }; 63 64 #endif 65