uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomaiwakn/inc/bctestdomuiserverunlockmedia.h
changeset 0 2f259fa3e83a
child 10 3d340a0166ff
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : bctestdomuiserverunlockmedia.h
       
     4 *  Part of     : BCTest / bctestdomaiwakn       
       
     5 *  Description : test the asynchronous methods of RAknUiServer.
       
     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_CBCTESTDOMUISERVERUNLOCKMEDIA_H
       
    21 #define C_CBCTESTDOMUISERVERUNLOCKMEDIA_H
       
    22 
       
    23  
       
    24 #include <akncapserverclient.h> 
       
    25 
       
    26  
       
    27 /**
       
    28  *  test the asynchronous methods of RAknUiServer.
       
    29  *  
       
    30  *
       
    31  *  @code
       
    32  *    
       
    33  *  @endcode
       
    34  *
       
    35  *  @lib   
       
    36  *  @since S60 v5.0
       
    37  */  
       
    38 class CBCTestDomUiServerUnlockMedia : public CActive
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43      static CBCTestDomUiServerUnlockMedia  * NewLC();
       
    44 
       
    45     /**
       
    46      * Destructor.
       
    47      */
       
    48      virtual ~CBCTestDomUiServerUnlockMedia  ();
       
    49 
       
    50     /**
       
    51      * Unlock the default Multimedia Memory Card.
       
    52      *
       
    53      * Display a text query dialog requesting the password.
       
    54      * Unlock the MMC using the password entered by the user
       
    55      * in this dialog (unless the dialog is cancelled).
       
    56      * If the password is wrong display the dialog again with
       
    57      * a different prompt. This call is asynchronous, the
       
    58      * application should not assume that the card has been
       
    59      * unlocked when this function returns. In fact,
       
    60      * when this function returns the dialog is still
       
    61      * displaying. If the application needs to be notified
       
    62      * when the unlock operation is complete, it should implement
       
    63      * UnlockComplete. Memory for this class is automatically
       
    64      * released when the unlock operation is complete.
       
    65      * The application should therefore not delete this object.
       
    66      *
       
    67      * @since S60 v5.0     
       
    68      * @param aStore        store passwd
       
    69      *
       
    70      */
       
    71     void UnlockCardLD( TBool aStore = ETrue );
       
    72 
       
    73 protected: 
       
    74 
       
    75 // from base class CActive  
       
    76     /**
       
    77      * from  CActive.  
       
    78      * will delete this unless we are deleting already 
       
    79      *
       
    80      * @since S60 v5.0    
       
    81      */
       
    82      void DoCancel();  
       
    83      
       
    84     /**
       
    85      * from  CActive. 
       
    86      * Internal routine to set the state
       
    87      *
       
    88      * @since S60 v5.0
       
    89      */
       
    90      void RunL();
       
    91      
       
    92 private:
       
    93 
       
    94      CBCTestDomUiServerUnlockMedia();
       
    95 
       
    96      void ConstructL();
       
    97    
       
    98     /**
       
    99      * StartL     
       
   100      * 
       
   101      *
       
   102      * @since S60 v5.0
       
   103      * @param aDrive  Drive number.
       
   104      */
       
   105      void StartL( TDriveNumber& aDrive);    
       
   106 
       
   107 private: // Data
       
   108 
       
   109     /**
       
   110      * a RAknUiServer object
       
   111      */
       
   112     RAknUiServer    iAknCapServerClient;
       
   113 
       
   114     /**
       
   115      * whether to store passwd.
       
   116      */
       
   117     TBool         iStore;
       
   118     };
       
   119 
       
   120 #endif // C_CBCTESTDOMUISERVERUNLOCKMEDIA_H