convergedconnectionhandler/cchclientapi/inc/cchuicommon.hrh
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2008-2009 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:  Resource header for project CCH UI
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCHUI_HRH
       
    20 #define CCHUI_HRH
       
    21 
       
    22 #include <cchuiobserver.h>
       
    23 
       
    24 const TInt KUserNameLength = 100;
       
    25 const TInt KPasswordLength = 100;
       
    26 const TUid KCchUiNotifierUid = { 0x200195A8 };
       
    27 const TUid KCchUiNotifierChannel = { 0x200195A8 };
       
    28 const TInt KServiceNameLength = 100;
       
    29 
       
    30 enum TCchUiOperationCommand
       
    31     {
       
    32     ECchUiNoCommand = 0,
       
    33     ECchUiCommandConnectWhenAvailable,
       
    34     ECchUiCommandSearchWlan,
       
    35     ECchUiCommandCopyGprs,
       
    36     ECchUiCommandGprsNotFound,
       
    37     ECchUiCommandEnableCancelled
       
    38     };
       
    39 
       
    40 NONSHARABLE_CLASS( TCCHUiNotifierParams )
       
    41     /** Notifier params for CCH UI */
       
    42     {
       
    43 public:
       
    44     /** Dialog mode */
       
    45     MCchUiObserver::TCchUiDialogType    iDialogMode;
       
    46     /** Username. */
       
    47     TBuf<KUserNameLength> iUsername;
       
    48     /** Password */
       
    49     TBuf<KUserNameLength> iPwd;
       
    50     /** Service id for which dialog was shown */
       
    51     TUint   iServiceId;
       
    52     /** Command that user selected from dialog */
       
    53     TCchUiOperationCommand  iOperationCommand;
       
    54     /** stores gprs iap source snap when gprs iap is copied to service snap */
       
    55     TUint   iGprsSourceSnap;
       
    56     /** stores gprs iap id when gprs iap is copied to service snap */
       
    57     TUint   iGprsIapId;
       
    58     /** stores current connection iap id if we have one, othewise itīs zero */
       
    59     TUint iCurrentConnectionIapId;
       
    60     /** stores flag if current connection can be removed after change connection */
       
    61     TBool iRemoveOldConnection;
       
    62     };
       
    63 typedef TPckgBuf<TCCHUiNotifierParams> TCCHUiNotifierParamsPckg;
       
    64 
       
    65 #ifdef CCHUI_EUNIT
       
    66 #define CCHUI_UNIT_TEST(ClassName) friend class ClassName;
       
    67 #else 
       
    68 #define CCHUI_UNIT_TEST(ClassName)
       
    69 #endif // CCHUI_EUNIT
       
    70 
       
    71 #endif // CCHUI_HRH