messagingappbase/msgerrorwatcher/inc/MsgErrorGlobalQuery.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *    CMsgErrorGlobalQuery declaration file 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MSGERRORGLOBALQUERYOBSERVER_H
       
    22 #define MSGERRORGLOBALQUERYOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMsgErrorWatcher;
       
    29 class CAknGlobalConfirmationQuery;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * CMsgErrorGlobalQuery
       
    35 *
       
    36 * @lib msgerrorwatcher.dll
       
    37 * @since 2.0
       
    38 */
       
    39 class CMsgErrorGlobalQuery : public CActive
       
    40     {
       
    41     public:     // construct / destruct
       
    42 
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         *
       
    46         * @param aWatcher A pointer to CMsgErrorWatcher
       
    47         */
       
    48         static CMsgErrorGlobalQuery* NewL(
       
    49             CMsgErrorWatcher* aWatcher );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CMsgErrorGlobalQuery();
       
    55 
       
    56         /**
       
    57         * Shows the global query
       
    58         *
       
    59         * @param aPrompt
       
    60         * @param aSoftkeys
       
    61         * @param aQueryId
       
    62         */
       
    63         void ShowQueryL(
       
    64             const TDesC& aPrompt,
       
    65             TInt aSoftkeys,
       
    66             TInt aQueryId );
       
    67 
       
    68     private:
       
    69     
       
    70         /**
       
    71         * By default Symbian OS constructor is private.
       
    72         */
       
    73         void ConstructL();
       
    74 
       
    75         /**
       
    76         * Constructor.
       
    77         *
       
    78         * @param aWatcher A pointer to CMsgErrorWatcher
       
    79         */
       
    80         CMsgErrorGlobalQuery( CMsgErrorWatcher* aWatcher );
       
    81 
       
    82         /**
       
    83         * From CActive
       
    84         */
       
    85         void RunL() ;
       
    86 
       
    87         /**
       
    88         * From CActive
       
    89         */
       
    90         void DoCancel();
       
    91 
       
    92     private:    // data
       
    93 
       
    94         CAknGlobalConfirmationQuery*    iGlobalQuery;
       
    95         CMsgErrorWatcher*               iWatcher;
       
    96         HBufC*                          iPrompt;
       
    97         TInt                            iQueryId;
       
    98     };
       
    99 
       
   100 #endif
       
   101 
       
   102 // End of File