iaupdate/IAD/launcher/inc/iaupdatelaunchermanager.h
branchRCL_3
changeset 66 8b7f4e561641
parent 0 ba25891c3a9e
equal deleted inserted replaced
65:7333d7932ef7 66:8b7f4e561641
       
     1 /*
       
     2 * Copyright (c) 2008 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 "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:   This file contains the header file of the CIAUpdateLauncherManager class 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IA_UPDATE_LAUNCHER_MANAGER_H
       
    21 #define IA_UPDATE_LAUNCHER_MANAGER_H
       
    22 
       
    23 
       
    24 //INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32std.h>
       
    27 #include <coemain.h>
       
    28 
       
    29 #include "iaupdatelauncherclient.h"
       
    30 
       
    31 /**
       
    32  * 
       
    33   */
       
    34 class CIAUpdateLauncherManager : public CActive
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Symbian two phased constructor.
       
    41      */
       
    42     static CIAUpdateLauncherManager* NewL( TBool& aRefreshFromNetworkDenied );
       
    43     
       
    44     /**
       
    45      * Symbian two phased constructor.
       
    46      */
       
    47     static CIAUpdateLauncherManager* NewLC( TBool& aRefreshFromNetworkDenied );
       
    48     
       
    49 
       
    50     /**
       
    51      * Destructor
       
    52      */
       
    53     virtual ~CIAUpdateLauncherManager();
       
    54     
       
    55 
       
    56     
       
    57 
       
    58 private: // CActive
       
    59 
       
    60     /**
       
    61      * @see CActive::DoCancel
       
    62      */
       
    63     void DoCancel();
       
    64 
       
    65     /**
       
    66      * When the server side has finished operation, the CActive object will
       
    67      * be informed about it, and as a result RunL will be called. This function
       
    68      * well inform the observer that the operation has been completed.
       
    69      * @see CActive::RunL
       
    70      */
       
    71     void RunL();
       
    72 
       
    73 
       
    74 private:
       
    75 
       
    76     /**
       
    77      * private C++ constructor
       
    78      */
       
    79     CIAUpdateLauncherManager();
       
    80     
       
    81     /**
       
    82      * @see NewL
       
    83      */
       
    84     void ConstructL( TBool& aRefreshFromNetworkDenied );
       
    85 
       
    86   
       
    87 private:
       
    88 
       
    89     // Prevent these if not implemented
       
    90     CIAUpdateLauncherManager( const CIAUpdateLauncherManager& aObject );
       
    91     CIAUpdateLauncherManager& operator =( const CIAUpdateLauncherManager& aObject );
       
    92     
       
    93 
       
    94 private: // data
       
    95        
       
    96     // Handles the client server communication.
       
    97     RIAUpdateLauncherClient iUpdateClient;
       
    98         
       
    99     CEikonEnv* iEikEnv; //not owned
       
   100 
       
   101     };
       
   102 
       
   103 #endif // IA_UPDATE_LAUNCHER_MANAGER_H