uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/inc/bctestdomuiservershutdownapps.h
changeset 0 2f259fa3e83a
child 10 3d340a0166ff
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : bctestdomuiservershutdownapps.h
       
     4 *  Part of     : BCTest / bctestdomaiwakn       
       
     5 *  Description : test the asynchronous method RAknUiServer::ShutdownApps().
       
     6 *  Version     : %version: 1 % << Don't touch! Updated by Synergy at check-out.
       
     7 *
       
     8 *  Copyright © 2007.  All rights reserved.
       
     9 *  This material, including documentation and any related computer
       
    10 *  programs, is protected by copyright controlled by Nokia.  All
       
    11 *  rights are reserved.  Copying, including reproducing, storing,
       
    12 *  adapting or translating, any or all of this material requires the
       
    13 *  prior written consent of Nokia.  This material also contains
       
    14 *  confidential information which may not be disclosed to others
       
    15 *  without the prior written consent of Nokia.
       
    16 * ============================================================================
       
    17 * Template version: 4.2
       
    18 */
       
    19 
       
    20 #ifndef C_CBCTESTDOMUISERVERSHUTDOWNAPPS_H
       
    21 #define C_CBCTESTDOMUISERVERSHUTDOWNAPPS_H
       
    22 
       
    23  
       
    24 #include <akncapserverclient.h> 
       
    25 
       
    26  
       
    27 /**
       
    28  *  test the asynchronous method RAknUiServer::ShutdownApps().
       
    29  *  
       
    30  *
       
    31  *  @code
       
    32  *    
       
    33  *  @endcode
       
    34  *
       
    35  *  @lib   
       
    36  *  @since S60 v5.0
       
    37  */  
       
    38 class CBCTestDomUiServerShutdownApps : public CActive
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43 
       
    44      static CBCTestDomUiServerShutdownApps * NewLC();
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     virtual ~CBCTestDomUiServerShutdownApps ();
       
    50 
       
    51     /**
       
    52      * Unlock the default Multimedia Memory Card.
       
    53      *
       
    54      * Display a text query dialog requesting the password.
       
    55      * Unlock the MMC using the password entered by the user
       
    56      * in this dialog (unless the dialog is cancelled).
       
    57      * If the password is wrong display the dialog again with
       
    58      * a different prompt. This call is asynchronous, the
       
    59      * application should not assume that the card has been
       
    60      * unlocked when this function returns. In fact,
       
    61      * when this function returns the dialog is still
       
    62      * displaying. If the application needs to be notified
       
    63      * when the unlock operation is complete, it should implement
       
    64      * UnlockComplete. Memory for this class is automatically
       
    65      * released when the unlock operation is complete.
       
    66      * The application should therefore not delete this object.
       
    67      *
       
    68      * @since S60 v5.0     
       
    69      * @param aStore        store passwd
       
    70      *
       
    71      */
       
    72     void ShutdownAppsLD( const TUid aRequesterUID, 
       
    73                          const TInt aTimeoutInMicroseconds = 500 );
       
    74 
       
    75 protected: 
       
    76 
       
    77 // from base class CActive  
       
    78     /**
       
    79      * from  CActive.  
       
    80      * will delete this unless we are deleting already 
       
    81      *
       
    82      * @since S60 v5.0    
       
    83      */
       
    84      void DoCancel();  
       
    85      
       
    86     /**
       
    87      * from  CActive. 
       
    88      * Internal routine to set the state
       
    89      *
       
    90      * @since S60 v5.0
       
    91      */
       
    92      void RunL();
       
    93       
       
    94 private:
       
    95 
       
    96      CBCTestDomUiServerShutdownApps ();
       
    97 
       
    98      void ConstructL();
       
    99    
       
   100     /**
       
   101      * New functions     
       
   102      * 
       
   103      *
       
   104      * @since S60 v5.0
       
   105      * @param aRequesterUID  an app uid.
       
   106      * @param aTimeoutInMicroseconds   a timeout in microseconds .  
       
   107      */
       
   108      void StartL( const TUid aRequesterUID, 
       
   109         const TInt aTimeoutInMicroseconds = 500 );  
       
   110       
       
   111 private: // Data
       
   112 
       
   113     /**
       
   114      * pointer to RAknUiServer
       
   115      * Not own.  
       
   116      */
       
   117      RAknUiServer*    iAknCapServerClient;
       
   118 
       
   119     };
       
   120 
       
   121  
       
   122 
       
   123 
       
   124 
       
   125 #endif // C_CBCTESTDOMUISERVERSHUTDOWNAPPS_H