[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: groupwise_in_anger: kdenetwork/kopete/protocols/groupwise
From: Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date: 2004-09-09 18:29:37
Message-ID: 20040909182937.02E1A1C67 () office ! kde ! org
[Download RAW message or body]
CVS commit by wstephens:
Oops, forgot this important piece of the picture - otherwise we crash when rejoining \
a chat
M +5 -1 gwmessagemanager.cpp 1.1.2.23
M +6 -3 gwmessagemanager.h 1.1.2.17
--- kdenetwork/kopete/protocols/groupwise/gwmessagemanager.h #1.1.2.16:1.1.2.17
@@ -40,6 +41,6 @@ friend class GroupWiseAccount;
public:
/**
- * INNER CLASS
* Specialised dictionary that only keys on the first CONF_GUID_END \
characters of a conference GUID + * INNER CLASS derived from an INSTANCE of a \
TEMPLATE CLASS with an OVERLOADED OPERATOR []
*/
class Dict : public QMap< ConferenceGuid, GroupWiseMessageManager * >
@@ -49,4 +50,5 @@ public:
void insert( const ConferenceGuid & key, GroupWiseMessageManager * \
item );
GroupWiseMessageManager * operator[]( const ConferenceGuid & key );
+ void remove( const ConferenceGuid & k );
};
--- kdenetwork/kopete/protocols/groupwise/gwmessagemanager.cpp #1.1.2.22:1.1.2.23
@@ -47,8 +47,12 @@ void GroupWiseMessageManager::Dict::inse
GroupWiseMessageManager * GroupWiseMessageManager::Dict::operator[]( const \
ConferenceGuid & key ) {
- //return (*( QMap< ConferenceGuid, GroupWiseMessageManager * > *)this)[ \
key.left( CONF_GUID_END ) ];
return QMap< ConferenceGuid, GroupWiseMessageManager * >::operator[]( \
key.left( CONF_GUID_END ) ); }
+void GroupWiseMessageManager::Dict::remove( const ConferenceGuid & key )
+{
+ QMap< ConferenceGuid, GroupWiseMessageManager * >::remove( key.left( \
CONF_GUID_END ) ); +}
+
GroupWiseMessageManager::GroupWiseMessageManager(const KopeteContact* user, \
KopeteContactPtrList others, KopeteProtocol* protocol, const \
GroupWise::ConferenceGuid & guid, int id, const char* name): \
KopeteMessageManager(user, others, protocol, 0, name), m_guid( guid ), m_flags( 0 ), \
m_searchDlg( 0 ), m_memberCount( others.count() ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic