voipplugins/sipconnectionprovider/inc/scpstatecontainer.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2002-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_SCPSTATECONTAINER_H
       
    20 #define T_SCPSTATECONTAINER_H
       
    21 
       
    22 #include <cchclientserver.h>
       
    23 
       
    24 #include "scpdisabled.h"
       
    25 #include "scpconnectingservice.h"
       
    26 #include "scpenabled.h"
       
    27 #include "scpdisconnecting.h"
       
    28 
       
    29 class TScpSubServiceState;
       
    30 
       
    31 /**
       
    32 *  Service state container. Singleton.
       
    33 *
       
    34 *  @lib sipconnectionprovider.dll
       
    35 */
       
    36 class TScpStateContainer
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Constructor
       
    42      */
       
    43     TScpStateContainer();
       
    44 
       
    45     /**
       
    46      * Initializes the singleton. Should be called only once
       
    47      * during the lifetime of the dll.
       
    48      */
       
    49     void InitializeL();
       
    50 
       
    51     /**
       
    52      * Returns singleton instances of the service states
       
    53      * @param aState State type
       
    54      * @return State object
       
    55      */
       
    56     static TScpSubServiceState* Instance( TCCHSubserviceState aState );
       
    57 
       
    58 private:
       
    59 
       
    60     /**
       
    61      * Disabled state
       
    62      */
       
    63     TScpDisabled iDisabled;
       
    64 
       
    65     /**
       
    66      * Connecting service state
       
    67      */
       
    68     TScpConnectingService iConnectingService;
       
    69 
       
    70     /**
       
    71      * Enabled state
       
    72      */
       
    73     TScpEnabled iEnabled;
       
    74 
       
    75     /**
       
    76      * Disconnecting state
       
    77      */
       
    78     TScpDisconnecting iDisconnecting;
       
    79     };
       
    80 
       
    81 #endif      // T_SCPSTATECONTAINER_H   
       
    82             
       
    83 // End of File