connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/devicedialogobserver.h
changeset 66 ed07dcc72692
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 __DEVICEDIALOGOBSERVER_H__
       
    19 #define __DEVICEDIALOGOBSERVER_H__
       
    20 
       
    21 #include "cellulardataconfirmation.h"
       
    22 
       
    23 NONSHARABLE_CLASS ( CDeviceDialogObserver ) : public CBase, public MHbDeviceDialogObserver
       
    24     {
       
    25     public:
       
    26         /**
       
    27         * Two-phased constructor.
       
    28         */
       
    29         static CDeviceDialogObserver* NewL( CCellularDataConfirmation* aNotifier );
       
    30         
       
    31         /**
       
    32         * Destructor
       
    33         */
       
    34         ~CDeviceDialogObserver();
       
    35         
       
    36         /**
       
    37         * Handles the user input received from the dialog
       
    38         * @param    aData CHbSymbianVariantMap&
       
    39         */
       
    40         void DataReceived(CHbSymbianVariantMap& aData);
       
    41         
       
    42         /**
       
    43         * Handles the closing of the dialog
       
    44         * @param    aCompletionCode TInt
       
    45         */
       
    46         void DeviceDialogClosed(TInt /*aCompletionCode*/);
       
    47         /**
       
    48         * Sets the available choices for the query into the class variable
       
    49         * @param    aChoices RArray<TInt>
       
    50         */
       
    51         void SetChoices( RArray<TMsgQueryLinkedResults>& aChoices );
       
    52     private:
       
    53         /**
       
    54         * Constructor
       
    55         */
       
    56         CDeviceDialogObserver( CCellularDataConfirmation* aNotifier );
       
    57         
       
    58     private:
       
    59         /* Pointer to the object that triggered the dialog opening,
       
    60          * needed to update the information about the user input.
       
    61          */
       
    62         CCellularDataConfirmation* iNotifier;
       
    63         /* The order of the buttons in the dialog, in order to map the
       
    64          * data received from the dialog into the actual selected choice.
       
    65          */
       
    66         RArray<TMsgQueryLinkedResults> iChoiceIds;
       
    67     };
       
    68 
       
    69 #endif /* __DEVICEDIALOGOBSERVER_H__ */