voipplugins/sipconnectionprovider/inc/scpsubservicestate.h
branchRCL_3
changeset 22 d38647835c2e
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     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_SCPSUBSERVICESTATE_H
       
    20 #define T_SCPSUBSERVICESTATE_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <cchclientserver.h>
       
    24 
       
    25 class CScpSubService;
       
    26 
       
    27 /**
       
    28 *  TScpSubServiceState
       
    29 *
       
    30 *  @lib sipconnectionprovider.dll
       
    31 */
       
    32 class TScpSubServiceState
       
    33     {
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Constructor
       
    38      */
       
    39     TScpSubServiceState();
       
    40 
       
    41     /**
       
    42      * Returns state
       
    43      * @return State
       
    44      */
       
    45     virtual TCCHSubserviceState State() const = 0;
       
    46 
       
    47     /**
       
    48      * Returns state
       
    49      * @return State
       
    50      */
       
    51     virtual void EnableL( CScpSubService& aSubService ) const;
       
    52 
       
    53     /**
       
    54      * Disable
       
    55      * @param aSubService Sub service
       
    56      */
       
    57     virtual TInt Disable( CScpSubService& aSubService ) const;
       
    58 
       
    59     /**
       
    60      * Network found
       
    61      * @param aSubService Sub service
       
    62      */
       
    63     virtual void NetworkFound( CScpSubService& aSubService ) const;
       
    64 
       
    65     /**
       
    66      * Network lost
       
    67      * @param aSubService Sub service
       
    68      */
       
    69     virtual void NetworkLost( CScpSubService& aSubService ) const;
       
    70 
       
    71     /**
       
    72      * Network not found
       
    73      * @param aSubService Sub service
       
    74      */
       
    75     virtual void NetworkNotFound( CScpSubService& aSubService ) const;
       
    76 
       
    77     /**
       
    78      * Service connection failed
       
    79      * @param aSubService Sub service
       
    80      */
       
    81     virtual void ServiceConnectionFailed( CScpSubService& aSubService ) const;
       
    82 
       
    83     /**
       
    84      * Service connection failed
       
    85      * @param aSubService Sub service
       
    86      */
       
    87     virtual void ServiceInvalidSettings( CScpSubService& aSubService ) const;
       
    88         
       
    89     /**
       
    90      * Service connected
       
    91      * @param aSubService Sub service
       
    92      */
       
    93     virtual void ServiceConnected( CScpSubService& aSubService ) const;
       
    94 
       
    95     /**
       
    96      * Service disconnected
       
    97      * @param aSubService Sub service
       
    98      */
       
    99     virtual void ServiceDisconnected( CScpSubService& aSubService ) const;
       
   100 
       
   101     /**
       
   102      * Authentication failed
       
   103      * @param aSubService Sub service
       
   104      */
       
   105     virtual void AuthenticationFailed( CScpSubService& aSubService ) const;
       
   106     
       
   107     /**
       
   108      * Roaming ongoing
       
   109      * @param aSubService Sub service
       
   110      */
       
   111     virtual void Roaming( CScpSubService& aSubService ) const;
       
   112     
       
   113     /**
       
   114      * Service connection canceled
       
   115      * @param aSubService Sub service
       
   116      */
       
   117     virtual void ServiceConnectionCanceled( CScpSubService& aSubService ) const;
       
   118     
       
   119     /**
       
   120      * Registration pending
       
   121      * @param aSubService Sub service
       
   122      */
       
   123     virtual void RegistrationPending( CScpSubService& aSubService ) const;
       
   124     
       
   125     
       
   126 protected:
       
   127 
       
   128 
       
   129     void ChangeState( CScpSubService& aSubService, 
       
   130                       TCCHSubserviceState aState,
       
   131                       TInt aError ) const;
       
   132     };
       
   133 
       
   134 #endif      // T_SCPSUBSERVICESTATE_H   
       
   135             
       
   136 // End of File