[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kopete/libkopete
From:       Matt Rogers <mattr () kde ! org>
Date:       2005-04-25 22:13:32
Message-ID: 20050425221332.D3BDB3EF () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

d-pointerize Kopete::NotifyDataObject

install the header for Kopete::NotifyDataObject (they were apparently left out
and out-of-tree builds won't work w/o them)


  M +2 -1      Makefile.am   1.123
  M +14 -6     kopetenotifydataobject.cpp   1.3
  M +2 -1      kopetenotifydataobject.h   1.4


--- kdenetwork/kopete/libkopete/Makefile.am  #1.122:1.123
@@ -54,5 +54,6 @@
         kopeteonlinestatus.h kopeteonlinestatusmanager.h kopetepasswordedaccount.h \
         kopetepassword.h kopeteplugin.h kopeteprotocol.h \
                kopetesimplemessagehandler.h kopetetask.h \
-        kopetetransfermanager.h kopeteuiglobal.h kopetexsl.h kabcpersistence.h \
managedconnectionaccount.h +        kopetetransfermanager.h kopeteuiglobal.h \
kopetexsl.h kabcpersistence.h managedconnectionaccount.h \ +        \
kopetenotifydataobject.h  
 # vim: set noet:

--- kdenetwork/kopete/libkopete/kopetenotifydataobject.cpp  #1.2:1.3
@@ -21,16 +21,24 @@
 #include "kopetenotifyevent.h"
 
+class Kopete::NotifyDataObject::Private
+{
+public:
+        QDict<Kopete::NotifyEvent> events;
+};
+
 Kopete::NotifyDataObject::NotifyDataObject()
 {
-        m_events.setAutoDelete( true );
+        d = new Private();
+        d->events.setAutoDelete( true );
 }
 
 Kopete::NotifyDataObject::~NotifyDataObject()
 {
+        delete d;
 }
 
 Kopete::NotifyEvent * Kopete::NotifyDataObject::notifyEvent( const QString &event ) \
const  {
-        Kopete::NotifyEvent *evt = m_events.find( event );
+        Kopete::NotifyEvent *evt = d->events.find( event );
         return evt;
 }
@@ -38,10 +46,10 @@ Kopete::NotifyEvent * Kopete::NotifyData
 void Kopete::NotifyDataObject::setNotifyEvent( const QString& event, \
Kopete::NotifyEvent *notifyEvent )  {
-        m_events.replace( event, notifyEvent );
+        d->events.replace( event, notifyEvent );
 }
 
 bool Kopete::NotifyDataObject::removeNotifyEvent( const QString &event )
 {
-        return m_events.remove( event );
+        return d->events.remove( event );
 }
 
@@ -50,9 +58,9 @@ QDomElement Kopete::NotifyDataObject::no
         QDomDocument notify;
         QDomElement notifications;
-        if ( !m_events.isEmpty() )
+        if ( !d->events.isEmpty() )
         {
                 //<custom-notifications>
                 notifications = notify.createElement( QString::fromLatin1( \
                "custom-notifications" ) );
-                QDictIterator<Kopete::NotifyEvent> it( m_events );
+                QDictIterator<Kopete::NotifyEvent> it( d->events );
                 for ( ; it.current(); ++it )
                 {

--- kdenetwork/kopete/libkopete/kopetenotifydataobject.h  #1.3:1.4
@@ -50,5 +50,6 @@ class KOPETE_EXPORT NotifyDataObject
                 bool notifyDataFromXML( const QDomElement& element );
         private:
-                QDict<NotifyEvent> m_events;
+                class Private;
+                NotifyDataObject::Private* d;
 };
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic