bearermanagement/mpm/inc/mpmcsidwatcher.h
changeset 0 5a93021fdf25
child 8 2e6c4614c58e
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     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: Listen connect screen id key changes in central repository.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMCSIDWATCHER_H
       
    19 #define MPMCSIDWATCHER_H
       
    20 
       
    21 class CRepository;
       
    22 
       
    23 /**
       
    24  *  Class for accessing central repository
       
    25  *  Follows KMpmConnectScreenId key in central repository.
       
    26  *  @since 5.1
       
    27  */
       
    28 class CMpmCsIdWatcher : public CActive
       
    29     {
       
    30 
       
    31 public:
       
    32 
       
    33     static CMpmCsIdWatcher* NewL();
       
    34 
       
    35     /**
       
    36     * Destructor.
       
    37     */
       
    38     virtual ~CMpmCsIdWatcher();
       
    39 
       
    40     /**
       
    41      * Call this when you want to start listen event.
       
    42      * @since 5.1
       
    43      */
       
    44     void StartL();
       
    45     
       
    46     /**
       
    47      * Returns connect screen id.
       
    48      * @since 5.1
       
    49 	 * @return Connect screen id
       
    50      */
       
    51     TUint32 ConnectScreenId() const;
       
    52     
       
    53 // from base class CActive
       
    54 
       
    55     void RunL();
       
    56 
       
    57     TInt RunError( TInt aError );
       
    58 
       
    59     void DoCancel();
       
    60 
       
    61 private:
       
    62 
       
    63     CMpmCsIdWatcher();
       
    64 
       
    65     void ConstructL();
       
    66 
       
    67 private: // data
       
    68 
       
    69     /**
       
    70      * Id of the connect screen process
       
    71      */
       
    72     TInt iConnectScreenId;
       
    73 
       
    74     /**
       
    75      * Central repository handle
       
    76      * Own.
       
    77      */
       
    78     CRepository* iRepository;
       
    79 
       
    80     /**
       
    81      * Set when user connection is enabled
       
    82      */
       
    83     TBool iUserConnectionSupported;
       
    84     };
       
    85 
       
    86 #endif // MPMCSIDWATCHER_H