coreapplicationuis/SysAp/Inc/SysApConfirmationQuery.h
changeset 77 b01c07dfcf84
parent 74 1505405bc645
child 78 175a0d824084
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
     1 /*
       
     2 * Copyright (c) 2003-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:  CSysapConfirmationQuery header file. The clas can be used for
       
    15 *                showing global confirmation queries.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef SYSAPCONFIRMATIONQUERY_H
       
    21 #define SYSAPCONFIRMATIONQUERY_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AknGlobalConfirmationQuery.h>
       
    26 #include "SysAp.hrh"
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 class CSysApAppUi;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 *  CSysApConfirmationQuery
       
    37 *  
       
    38 *  @lib   sysap
       
    39 *  @since 1.2S 
       
    40 */
       
    41 
       
    42 class CSysApConfirmationQuery: public CActive
       
    43 {
       
    44 public:
       
    45 
       
    46     /**
       
    47     * Constructor
       
    48     */         
       
    49     static CSysApConfirmationQuery* NewL( CSysApAppUi& aSysApAppUi );
       
    50 
       
    51     /**
       
    52     * Destructor.
       
    53     */
       
    54     virtual ~CSysApConfirmationQuery();
       
    55 
       
    56     /**
       
    57     * This method shows the note
       
    58     * @param TSysApConfirmationQueryIds
       
    59     * @param CCoeEnv*
       
    60     * @return void
       
    61     */         
       
    62     void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, CCoeEnv* aLoaderEnv = NULL );
       
    63 
       
    64     /**
       
    65     * This method shows the note
       
    66     * @param aQueryId Query id defined by TSysApConfirmationQueryIds
       
    67     * @param aValue Query related value
       
    68     * @param aLoaderEnv Pointer to control environment
       
    69     */         
       
    70     void ShowQueryL( const TSysApConfirmationQueryIds aQueryId,
       
    71         const TDesC& aValue, CCoeEnv* aLoaderEnv = NULL );
       
    72 
       
    73     /**
       
    74     * From CActive. Cancels the active object from observing the list query
       
    75     * @param  None
       
    76     * @return void
       
    77     */
       
    78     void DoCancel();
       
    79     /**
       
    80     * From CActive. Gets called by active object when a selection is done.
       
    81     * @param  None
       
    82     * @return void
       
    83     */
       
    84     void RunL();
       
    85 
       
    86     /**
       
    87     * From CActive. Gets called by active object when leave happens inside RunL
       
    88     * @param None
       
    89     * @return void
       
    90     */
       
    91     TInt RunError( TInt aError );
       
    92     
       
    93     /**
       
    94     * Gets current query ID
       
    95     * @return Current query ID (TSysApConfirmationQueryIds)
       
    96     */
       
    97     TInt CurrentQuery();
       
    98 
       
    99 private:
       
   100 
       
   101     /**
       
   102     * Constructors
       
   103     */         
       
   104     CSysApConfirmationQuery( CSysApAppUi& aSysApAppUi );
       
   105     CSysApConfirmationQuery();
       
   106     void ConstructL();
       
   107 
       
   108 private:
       
   109 
       
   110     CSysApAppUi&                 iSysApAppUi;
       
   111     TSysApConfirmationQueryIds   iQueryId;
       
   112     CAknGlobalConfirmationQuery* iQuery;   
       
   113     TSysApConfirmationQueryIds   iPendingQuery;               
       
   114 };
       
   115 
       
   116 #endif // SYSAPCONFIRMATIONQUERYNOTE_H
       
   117 
       
   118 // End of File
       
   119