S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExGameObserver.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : MSIPExGameObserver.h
00004 *  Part of     : SIPExEngine
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef MSIPEXGAMEOBSERVER_H
00017 #define MSIPEXGAMEOBSERVER_H
00018 
00019 // INCLUDES
00020 #include    "SIPExGameEngine.h"
00021 
00022 // CLASS DECLARATIONS
00023 /**
00024 * Class for observing the game events.
00025 */
00026 class MSIPExGameObserver 
00027         {
00028     public:
00029         /**
00030                 * GameStateChanged
00031         * Called when the active state of the game is changed.
00032         * @param aNewState A new state of the game engine.
00033                 */
00034         virtual void GameStateChanged( CSIPExEngine::TEngineState aNewState ) = 0;
00035 
00036         /**
00037                 * AcceptInvitationL
00038         * Called when the invitation has arrived from SIP engine.
00039         * @param aFrom The address of the summoner.
00040         * @return ETrue if the user accepts the invitation, else EFalse.
00041                 */
00042         virtual TBool AcceptInvitationL( const TDesC& aFrom ) = 0;
00043 
00044         /**
00045                 * IMReceived
00046         * Called when the instant message has arrived from the SIP engine.
00047         * @param aFrom The address of the sender.
00048         * @param aMsg The message.
00049                 */
00050         virtual void  IMReceivedL( const TDesC8& aFrom, const TDesC8& aMsg ) = 0;
00051         };
00052 
00053 #endif // MSIPEXGAMEOBSERVER_H
00054 
00055 // End of file
00056 

© Nokia 2006

Back to top