pushmtm/Plugins/PushContentHandler/CPushContentHandlerBase.h
changeset 32 92a061761a7b
parent 0 84ad3b177aa3
equal deleted inserted replaced
31:868cceedabd3 32:92a061761a7b
    21 #define __CPUSHCONTENTHANDLERBASE_H__
    21 #define __CPUSHCONTENTHANDLERBASE_H__
    22 
    22 
    23 
    23 
    24 // INCLUDE FILES
    24 // INCLUDE FILES
    25 
    25 
    26 #include <CContentHandlerBase.h>
    26 #include <push/CContentHandlerBase.h>
    27 #include <E32Base.h>
    27 #include <E32Base.h>
    28 #include <msvstd.h>
    28 #include <msvstd.h>
    29 #include <msvapi.h>
    29 #include <msvapi.h>
    30 
    30 
    31 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    35 class CPushMtmSettings;
    35 class CPushMtmSettings;
    36 class CStringResourceReader;
    36 class CStringResourceReader;
    37 
    37 
    38 // CLASS DECLARATION
    38 // CLASS DECLARATION
    39 
    39 
    40 /** 
    40 /**
    41 * CPushContentHandlerBase class stands as a base class for almost all push 
    41 * CPushContentHandlerBase class stands as a base class for almost all push
    42 * content handlers of the Push MTM. It collects the generic functionality of 
    42 * content handlers of the Push MTM. It collects the generic functionality of
    43 * a push content handler, such as garbage collection when receiving new 
    43 * a push content handler, such as garbage collection when receiving new
    44 * service message, supporting CMsvSession, CPushMtmUtil and CPushMtmSettings 
    44 * service message, supporting CMsvSession, CPushMtmUtil and CPushMtmSettings
    45 * objects.
    45 * objects.
    46 */
    46 */
    47 class CPushContentHandlerBase : public CContentHandlerBase, 
    47 class CPushContentHandlerBase : public CContentHandlerBase,
    48                                 public MMsvSessionObserver
    48                                 public MMsvSessionObserver
    49 	{
    49 	{
    50     protected: // Constructors and destructor
    50     protected: // Constructors and destructor
    51 
    51 
    52         /**
    52         /**
    53         * Constructor.
    53         * Constructor.
    54         */
    54         */
    55 	    CPushContentHandlerBase();
    55 	    CPushContentHandlerBase();
    56 
    56 
    57         /**
    57         /**
    58         * Symbian OS constructor. CActiveScheduler::Add( this ) is called in 
    58         * Symbian OS constructor. CActiveScheduler::Add( this ) is called in
    59         * this method!!
    59         * this method!!
    60         */
    60         */
    61 	    void ConstructL();
    61 	    void ConstructL();
    62 
    62 
    63         /**
    63         /**
    80         TBool FilterPushMsgL();
    80         TBool FilterPushMsgL();
    81 
    81 
    82     protected: // From MMsvSessionObserver
    82     protected: // From MMsvSessionObserver
    83 
    83 
    84         /**
    84         /**
    85         * Msv session events are handled by this method. This implementation 
    85         * Msv session events are handled by this method. This implementation
    86         * is empty.
    86         * is empty.
    87         * @return None.
    87         * @return None.
    88         */
    88         */
    89         void HandleSessionEventL( TMsvSessionEvent aEvent, 
    89         void HandleSessionEventL( TMsvSessionEvent aEvent,
    90                                   TAny* aArg1, 
    90                                   TAny* aArg1,
    91                                   TAny* aArg2, 
    91                                   TAny* aArg2,
    92                                   TAny* aArg3);
    92                                   TAny* aArg3);
    93 
    93 
    94     protected: // Data
    94     protected: // Data
    95 
    95 
    96         CMsvSession* iMsvSession; ///< Session to Message Server. Has.
    96         CMsvSession* iMsvSession; ///< Session to Message Server. Has.