browserui/browser/BrowserAppInc/BrowserPushMtmObserver.h
branchRCL_3
changeset 48 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
47:6385c4c93049 48:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Definition of CBrowserPushMtmObserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BROWSERPUSHMTMOBSERVER_H
       
    20 #define BROWSERPUSHMTMOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class MApiProvider;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *
       
    41 *  @lib
       
    42 *  @since 3.0
       
    43 */
       
    44 NONSHARABLE_CLASS(CBrowserPushMtmObserver) : public CActive
       
    45     {
       
    46     public:  // Constructors and destructor
       
    47 
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         * @since 3.0
       
    51         * @param
       
    52         * @param
       
    53         * @return CacheHandler object.
       
    54         */
       
    55         static CBrowserPushMtmObserver* NewL( MApiProvider* aApiProvider );
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         virtual ~CBrowserPushMtmObserver();
       
    61 
       
    62     public: // new functions
       
    63         void StartObserver();
       
    64         HBufC8* ReadMsgFileL();
       
    65 
       
    66     public: // from base class CActive
       
    67         void RunL();
       
    68         TInt RunError(TInt aError);
       
    69         void DoCancel();
       
    70 
       
    71     private:
       
    72 
       
    73         /**
       
    74         * Construct.
       
    75         * @since 3.0
       
    76         * @param
       
    77         * @param
       
    78         * @return PushMtmObserver object.
       
    79         */
       
    80         CBrowserPushMtmObserver( MApiProvider* aApiProvider );
       
    81 
       
    82         /**
       
    83         * By default Symbian 2nd phase constructor is private.
       
    84         */
       
    85         void ConstructL();
       
    86 
       
    87     private:    // Data
       
    88 
       
    89         RFs iFsSession; // not owned
       
    90         MApiProvider* iApiProvider;
       
    91     };
       
    92 
       
    93 #endif      // BROWSERPUSHMTMOBSERVER_H
       
    94 
       
    95 // End of File