Logo Search packages:      
Sourcecode: kmess version File versions  Download package

WebApplicationP2P Class Reference

#include <webapplicationp2p.h>

Inheritance diagram for WebApplicationP2P:

P2PApplication Application

List of all members.


Detailed Description

This class handles the invitations for msn games and online activities. Those invitations are found in the "Games" and "Activities" buttons of the official client.

All activities are standard web pages with Flash, ActiveX or DHTML objects.

The application parameters are be queried at appdirectory.messenger.msn.com using SOAP. SOAP is a RPC technolog whose messages are formatted as XML and sent over HTTP.

Author:
Diederik van der Boor

Definition at line 38 of file webapplicationp2p.h.


Public Types

enum  ApplicationMode { APP_MODE_NORMAL, APP_MODE_BACKGROUND, APP_MODE_ERROR_HANDLER }

Signals

void appInitMessage (QString html)
void appMessage (QString html)
void deleteMe (Application *object)
void fileTransferred (QString filename)
void putMsg (const MimeMessage &message)
void systemMessage (QString message)

Public Member Functions

QString getBranch () const
QString getCallID () const
QString getContactHandle () const
const QString & getCookie () const
unsigned long getLastContactAckMessageID () const
unsigned long getLastContactMessageID () const
unsigned long getLastUserMessageID () const
unsigned long getLastUserUniqueID () const
int getMode () const
unsigned long getSessionID () const
void gotCommand (QString command)
void gotMessage (const MimeMessage &message)
void setMode (ApplicationMode mode)
void start ()
virtual void userAborted ()
 WebApplicationP2P (const QString &localIP, const QString &contactHandle)
virtual ~WebApplicationP2P ()

Static Public Member Functions

static QString getAppId ()

Protected Types

enum  ApplicationCancelReason {
  CANCEL_INVITATION, CANCEL_SESSION, CANCEL_NOT_INSTALLED, CANCEL_TIMEOUT,
  CANCEL_FAILED, CANCEL_INVALID_SLP_CONTENT_TYPE
}
enum  P2PDataType { P2P_TYPE_NEGOTIATION = 0, P2P_TYPE_PICTURE = 1, P2P_TYPE_FILE = 2 }

Protected Member Functions

void acknowledgePreparation (bool ack=true)
void contactAborted (const QString &message=0)
void contactRejected (const QString &message=0)
virtual void contactStarted2_UserAccepts ()
virtual void contactStarted3_ContactConfirmsAccept (const MimeMessage &message)
virtual void contactStarted4_ContactConfirmsPreparation ()
void endApplication (const QString &reason=0)
QString generateCookie () const
virtual QString getCancelMessage () const
const QString & getExternalIp () const
const QString & getInvitationContentType () const
unsigned long getInvitationSessionID () const
const QString & getLocalIp () const
virtual void gotData (const P2PMessage &message)
bool isUserStartedApp () const
bool isWaitingForUser () const
void offerAcceptOrReject (const QString &appHtml)
void offerCancel (const QString &appHtml)
void sendCancelMessage (const ApplicationCancelReason cancelReason)
void sendData (QIODevice *dataSource, const P2PDataType type)
void sendDataPreparation ()
void sendDataPreparationAck ()
void sendSlpInvitation (uint sessionID, const QString &contentType, const MimeMessage &message)
void sendSlpOkMessage (const MimeMessage &message)
void startByInvite (const QString &invitationCookie)
void userRejected ()
virtual void userStarted1_UserInvitesContact ()
virtual void userStarted2_ContactAccepts (const MimeMessage &message)
virtual void userStarted3_UserPrepares ()

Static Protected Member Functions

static void freePort (const int &port)
static unsigned long generateID ()

Private Member Functions

void contactStarted1_ContactInvitesUser (const MimeMessage &message)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index