devmngt_plat/default_app_client_api/tsrc/DasClientApiTest/inc/CClientLauncher.h
branchRCL_3
changeset 35 5f281e37a2f5
parent 0 254040eb3b7d
equal deleted inserted replaced
34:90fe62538f66 35:5f281e37a2f5
       
     1 /*
       
     2 * Copyright (c) 2002 - 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 "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:  CCClientLauncher declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CCLIENTLAUNCHER_H
       
    19 #define CCLIENTLAUNCHER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <aknserverapp.h> 
       
    25 #include <aknappui.h> 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  CCClientLauncher
       
    31  * 
       
    32  */
       
    33 class CCClientLauncher : public CAknAppUi,public MAknServerAppExitObserver
       
    34     {
       
    35 public:
       
    36     // Constructors and destructor
       
    37 
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~CCClientLauncher();
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CCClientLauncher* NewL();
       
    47     
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      */
       
    51     static CCClientLauncher* NewLC();
       
    52     
       
    53 public:
       
    54     //function from CAknAppUi
       
    55     void  ProcessCommandL (TInt aCommand);
       
    56     
       
    57 private:
       
    58     //function from MAknServerAppExitObserver
       
    59     //handle the exit of the server.
       
    60     void HandleServerAppExit(TInt aReason);
       
    61     
       
    62 private:
       
    63 
       
    64     /**
       
    65      * Constructor for performing 1st stage construction
       
    66      */
       
    67     CCClientLauncher();
       
    68 
       
    69     /**
       
    70      * EPOC default constructor for performing 2nd stage construction
       
    71      */
       
    72     void ConstructL();
       
    73 
       
    74     };
       
    75 
       
    76 #endif // CCLIENTLAUNCHER_H