connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/cellulardataconfirmation.h
changeset 66 ed07dcc72692
parent 64 84c6623982f6
equal deleted inserted replaced
64:84c6623982f6 66:ed07dcc72692
     1 /*
       
     2 * Copyright (c) 2010 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: Prompt Dialog implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CELLULARDATACONFIRMATION_H__
       
    19 #define __CELLULARDATACONFIRMATION_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ConnectionUiUtilities.h>
       
    23 #include <hb/hbcore/hbdevicedialogsymbian.h>
       
    24 #include "ConnectionDialogsNotifBase.h"
       
    25 #include "ConnectionUiUtilitiesCommon.h"
       
    26 
       
    27 class CDeviceDialogObserver;
       
    28 
       
    29 
       
    30 NONSHARABLE_CLASS ( CCellularDataConfirmation ) : public CConnectionDialogsNotifBase
       
    31     {
       
    32     public:
       
    33         /**
       
    34         * Two-phased constructor.
       
    35         */
       
    36         static CCellularDataConfirmation* NewL( 
       
    37                                 const TBool aResourceFileResponsible );
       
    38         
       
    39         /**
       
    40         * Destructor
       
    41         */
       
    42         ~CCellularDataConfirmation();
       
    43         
       
    44         /**
       
    45         * Start the Notifier
       
    46         * @param  aBuffer    Buffer
       
    47         * @param  aReplySlot Identifies which message argument to use for the 
       
    48         *                    reply. This message argument will refer to a 
       
    49         *                    modifiable descriptor, a TDes8 type, into which
       
    50         *                    data can be returned. 
       
    51         * @param  aMessage   Message
       
    52         * return -
       
    53         */
       
    54         void StartL( const TDesC8& aBuffer, 
       
    55                     TInt aReplySlot, 
       
    56                     const RMessagePtr2& aMessage );
       
    57         
       
    58         /**
       
    59         * Cancel() the notifier
       
    60         * @param  -
       
    61         * return -
       
    62         */
       
    63         void Cancel();
       
    64         
       
    65         /**
       
    66         * RegisterL register the client notifier function
       
    67         * @param  -
       
    68         * return TNotifierInfo
       
    69         */
       
    70         TNotifierInfo RegisterL();
       
    71         
       
    72         /**
       
    73         * CompleteL the notifier is complete
       
    74         * @param  aStatus status
       
    75         * return  -
       
    76         */
       
    77         void CompleteL( TInt aStatus );
       
    78         /**
       
    79         * Sets the selected choice of the presented dialog
       
    80         * @param  aChoice TInt 
       
    81         * return  -
       
    82         */
       
    83         void SetSelectedChoice( TInt aChoice );
       
    84        
       
    85     private:
       
    86         /**
       
    87         * Constructor
       
    88         */
       
    89         CCellularDataConfirmation();
       
    90     
       
    91     private:
       
    92         /** Pointer to the device dialog interface for handling the dialog */
       
    93         CHbDeviceDialogSymbian* iDialog;
       
    94         /** The observer to handle the data received from the orbit dialog */
       
    95         CDeviceDialogObserver* iObserver;
       
    96         /* The choice selected by the user from the dialog */
       
    97         TMsgQueryLinkedResults iChoice;
       
    98         /* Information if request was already completed, in case the
       
    99          * observer receives the data signal and the signal about closing the
       
   100          * dialog.
       
   101          */
       
   102         TBool iCompleted;
       
   103         
       
   104     
       
   105     };
       
   106 
       
   107 #endif //__CELLULARDATACONFIRMATION_H__