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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/msn
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-04-13 10:05:57
Message-ID: 20050413100557.04221492 () office ! kde ! org
[Download RAW message or body]

CVS commit by ogoffart: 

Support for msn7 wizz outgoing feature 


  M +2 -1      msnchatui.rc   1.6
  M +8 -0      msnmessagemanager.cpp   1.120
  M +2 -0      msnmessagemanager.h   1.38
  M +12 -0     msnswitchboardsocket.cpp   1.120
  M +2 -0      msnswitchboardsocket.h   1.36


--- kdenetwork/kopete/protocols/msn/msnchatui.rc  #1.5:1.6
@@ -1,4 +1,4 @@
 <!DOCTYPE kpartgui>
-<kpartgui version="3" name="kopete_msn_chat">
+<kpartgui version="4" name="kopete_msn_chat">
         <MenuBar>
                 <Menu noMerge="1" name="file">
@@ -6,4 +6,5 @@
                         <Action name="msnInvite" />
                         <Action name="msnRequestDisplayPicture" />
+                        <Action name="msnSendWizz" />
 <!--                    <Menu name="debug">
                                 <text>&amp;Debug</text>

--- kdenetwork/kopete/protocols/msn/msnmessagemanager.cpp  #1.119:1.120
@@ -78,4 +78,6 @@ MSNChatSession::MSNChatSession( Kopete::
         #endif
 
+        new KAction( i18n( "Send Wizz" ), 0, this, SLOT(slotSendWizz() ), \
actionCollection(), "msnSendWizz" ) ; +
         MSNContact *c = static_cast<MSNContact*>( others.first() );
         (new KAction( i18n( "Request Display Picture" ), "image", 0,  this, SLOT( \
slotRequestPicture() ), actionCollection(), "msnRequestDisplayPicture" \
))->setEnabled(!c->object().isEmpty()); @@ -627,4 +629,10 @@ void \
MSNChatSession::receivedTypingMsg(   }
 
+void MSNChatSession::slotSendWizz()
+{
+        if(m_chatService)
+                m_chatService->sendWizz();
+}
+
 #include "msnmessagemanager.moc"
 

--- kdenetwork/kopete/protocols/msn/msnmessagemanager.h  #1.37:1.38
@@ -88,4 +88,6 @@ private slots:
         void slotDebugRawCommand();
 
+        void slotSendWizz();
+
 private:
 

--- kdenetwork/kopete/protocols/msn/msnswitchboardsocket.cpp  #1.119:1.120
@@ -788,4 +789,15 @@ Kopete::Message &MSNSwitchBoardSocket::p
 }
 
+int MSNSwitchBoardSocket::sendWizz()
+{
+        QCString message = QString( "MIME-Version: 1.0\r\n"
+                        "Content-Type: text/x-msnmsgr-datacast\r\n"
+                        "\r\n"
+                        "ID: 1\r\n"
+                        "\r\n\r\n" ).utf8();
+
+        QString args = "U";
+        return sendCommand( "MSG", args, true, message );
+}
 
 

--- kdenetwork/kopete/protocols/msn/msnswitchboardsocket.h  #1.35:1.36
@@ -99,4 +99,6 @@ public:
         int sendMsg( const Kopete::Message &msg );
 
+        int sendWizz();
+
 public slots:
         void slotCloseSession();


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

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