commsconfig/cscsettingsui/inc/cscsettingsuidialog.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Declarition of CSCSettingsUiDialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CSCSETTINGSUIDIALOG_H
       
    20 #define C_CSCSETTINGSUIDIALOG_H
       
    21 
       
    22 class CAknGlobalNote;
       
    23 class CAknGlobalMsgQuery;
       
    24 class MCSCSettingsUiDialogObserver;
       
    25     
       
    26 /**
       
    27  *  CCSCSettingsUiDialog class
       
    28  *  Declarition of CCSCSettingsUiDialog.
       
    29  *
       
    30  *  @lib CSCSettingsUi.lib
       
    31  *  @since S60 v3.2
       
    32  */
       
    33 NONSHARABLE_CLASS( CCSCSettingsUiDialog ) : public CActive
       
    34     {
       
    35     public:
       
    36                 
       
    37         /**
       
    38          * Two-phased constructor.
       
    39          * @param aObserver settings ui dialog observer
       
    40          */
       
    41         static CCSCSettingsUiDialog* NewL(
       
    42             MCSCSettingsUiDialogObserver& aObserver );
       
    43 
       
    44 
       
    45         /**
       
    46          * Two-phased constructor.
       
    47          * @param aObserver settings ui dialog observer
       
    48          */
       
    49         static CCSCSettingsUiDialog* NewLC(
       
    50             MCSCSettingsUiDialogObserver& aObserver );
       
    51         
       
    52         
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         virtual ~CCSCSettingsUiDialog();
       
    57     
       
    58         
       
    59         /**
       
    60          * Launches a service information message query.
       
    61          *
       
    62          * @since S60 v3.2
       
    63          * @param aUsername for protocol profile username
       
    64          * @param aDomain for protocol profile domain
       
    65          * @param aAddress for connected address
       
    66          * @param aSsid for connected network
       
    67          * @param aMac for WLAN MAC address
       
    68          * @param aDisabled ETrue if service is disabled
       
    69          */
       
    70         void LaunchMessageQueryL(
       
    71             const TDesC& aUsername,
       
    72             const TDesC& aDomain,
       
    73             const TDesC& aAddress,
       
    74             const TDesC& aSsid,
       
    75             const TDesC& aMac,
       
    76             TBool aDisabled );
       
    77         
       
    78         
       
    79         /**
       
    80          * Destroys a service information message query.
       
    81          *
       
    82          * @since S60 v3.2
       
    83          */
       
    84         void DestroyMessageQuery();
       
    85         
       
    86     protected:
       
    87 
       
    88         // from base class CActive
       
    89    
       
    90         /**
       
    91          * @see CActive.
       
    92          */
       
    93         void RunL();
       
    94 
       
    95 
       
    96         /**
       
    97          * @see CActive.
       
    98          */
       
    99         void DoCancel();
       
   100         
       
   101     private:
       
   102 
       
   103         CCSCSettingsUiDialog( MCSCSettingsUiDialogObserver& aObserver );
       
   104 
       
   105         void ConstructL();
       
   106         
       
   107         
       
   108         /**
       
   109          * Creates text for service information message query.
       
   110          *
       
   111          * @since S60 v3.2
       
   112          * @param aText for service information text
       
   113          * @param aUsername for protocol profile username
       
   114          * @param aDomain for protocol profile domain
       
   115          * @param aAddress for connected address
       
   116          * @param aSsid for connected network
       
   117          * @param aMac for WLAN MAC address
       
   118          * @param aDisabled ETrue if service is disabled
       
   119          */
       
   120         void CreateTextForMsgQueryL( 
       
   121             HBufC* aText,
       
   122             const TDesC& aUsername,
       
   123             const TDesC& aDomain,
       
   124             const TDesC& aAddress,
       
   125             const TDesC& aSsid,
       
   126             const TDesC& aMac,
       
   127             TBool aDisabled ) const;
       
   128             
       
   129         
       
   130         /**
       
   131          * Creates an item for service information message query.
       
   132          *
       
   133          * @since S60 v3.2
       
   134          * @param aText for service information text
       
   135          * @param aItem for setting item text
       
   136          * @param aAdditionalValue for additional setting item value
       
   137          * @param aData for setting item value
       
   138          */
       
   139         void CreateItemToMsgQuery( 
       
   140             HBufC* aText,
       
   141             HBufC* aItem,
       
   142             HBufC* aAdditionalValue,
       
   143             const TDesC& aData ) const;
       
   144                 
       
   145     private: // Data  
       
   146 
       
   147         /**
       
   148          * Reference to settings ui dialog observer.
       
   149          */
       
   150          MCSCSettingsUiDialogObserver& iObserver;
       
   151                         
       
   152         /**
       
   153          * A global message query for service information.
       
   154          * Own.
       
   155          */
       
   156         CAknGlobalMsgQuery* iMsgQuery;
       
   157         
       
   158         /**
       
   159          * Global note Id
       
   160          */
       
   161         TInt iNoteId;
       
   162         
       
   163      };
       
   164 
       
   165 #endif // C_CSCSETTINGSUIDIALOG_H