connectionmonitoring/connmon/connectionmonitor/inc/CUiDialogAO.h
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Displays a dialog on the UI with the help of Symbian OS
       
    15 *                notification services.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CUIDIALOGAO_H
       
    20 #define __CUIDIALOGAO_H
       
    21 
       
    22 #include <cdblen.h>
       
    23 
       
    24 const TUid KUidSelectNetwork = { 0x101F6D16 };
       
    25 
       
    26 class CConnMonServer;
       
    27 
       
    28 /**
       
    29  * CUiDialogAO
       
    30  * Timer that cancel activity notifier after one second.
       
    31  * @lib CONNMON.LIB
       
    32  */
       
    33 NONSHARABLE_CLASS( CUiDialogAO ) : public CActive
       
    34     {
       
    35 public:
       
    36     static CUiDialogAO* NewL( CConnMonServer* aServer );
       
    37     virtual ~CUiDialogAO();
       
    38 
       
    39 public:
       
    40     /**
       
    41      * Starts canceller timer.
       
    42      * @return KErrNone if OK, otherwise a system wide error code.
       
    43      */
       
    44     void Start();
       
    45 
       
    46 private:
       
    47     /**
       
    48      * From CActive Cancels the timer.
       
    49      * @return void
       
    50      */
       
    51     void DoCancel();
       
    52 
       
    53     /**
       
    54      * From CActive Cancels the activity notifier and destroys itself.
       
    55      * @return void
       
    56      */
       
    57     void RunL();
       
    58 
       
    59 private:
       
    60     CUiDialogAO( CConnMonServer* aServer );
       
    61     void ConstructL();
       
    62 
       
    63 private:
       
    64     CConnMonServer* iServer;
       
    65     TPtrC8 iDummy;
       
    66     TBuf8< KCommsDbSvrMaxFieldLength > iNetIds;
       
    67     RNotifier iNotifier;
       
    68     };
       
    69 
       
    70 #endif //__CUIDIALOGAO_H
       
    71 
       
    72 // End-of-file