phonesrv_plat/phone_settings_api/inc/PsetContainer.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-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: 
       
    15 *      CPsetContainer is the general access class for phonesettings.
       
    16 *      Container must exists as long as other objects are used.          
       
    17 *
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef     PSETCONTAINER_H
       
    23 #define     PSETCONTAINER_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <psetcallwaiting.h> 
       
    27 #include <psetcalldiverting.h> 
       
    28 #include <psetcallbarring.h> 
       
    29 #include <psetcli.h> 
       
    30 #include <psetnetwork.h> 
       
    31 #include <psetrefreshhandler.h> 
       
    32 
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CPSetRefreshHandlerImpl;
       
    36 
       
    37 
       
    38 // CLASS DECLARATION
       
    39 /**
       
    40 *  CPsetContainer class is the general access class for phonesettings.
       
    41 *  @lib phonesettings.lib
       
    42 *  @since 1.0
       
    43 */
       
    44 class CPsetContainer : public CBase
       
    45     {
       
    46     public: //constructor & destructor
       
    47 
       
    48         /* Symbian OS 2-phase Constructor. */
       
    49         IMPORT_C static CPsetContainer* NewL();
       
    50 
       
    51         /* Destructor */
       
    52         IMPORT_C ~CPsetContainer();
       
    53 
       
    54     public:
       
    55         /**
       
    56         * Creates CPsetCallWaiting-object.
       
    57         *
       
    58         * @param aObserver Observer to CPsetCallWaiting class.
       
    59         * @return returns CPsetCallWaiting-pointer
       
    60         */
       
    61         IMPORT_C CPsetCallWaiting* CreateCWObjectL( 
       
    62             MPsetCallWaitingObserver& aObserver );
       
    63         
       
    64         /**
       
    65         * Creates CPsetCallDiverting-object.
       
    66         * 
       
    67         * @param  aObserver Observer to CPsetCallDiverting class.
       
    68         * @return returns CPsetCallDiverting-pointer
       
    69         */
       
    70         IMPORT_C CPsetCallDiverting* CreateCFObjectL( 
       
    71             MPsetDivertObserver& aObserver );
       
    72 
       
    73         /**
       
    74         * Creates CPsetClir-object.
       
    75         * 
       
    76         * @param aObserver Observer to CPsetCli class.
       
    77         * @return returns CPsetClir-pointer
       
    78         */
       
    79         IMPORT_C CPsetCli* CreateCliObjectL( MPsetCliObserver& aObserver );
       
    80         
       
    81         /**
       
    82         * Creates CPsetCallBarring-object.
       
    83         *
       
    84         * @param aObserver Observer to CPsetCallBarring class.
       
    85         * @return returns CPsetCallBarring-pointer
       
    86         */
       
    87         IMPORT_C CPsetCallBarring* CreateCBObjectL( 
       
    88             MPsetBarringObserver& aObserver);
       
    89          
       
    90         /**
       
    91         * Creates CPsetNetwork-object.
       
    92         * 
       
    93         * @param aObserver Observer to CPsetNetwork class.
       
    94         * @return Returns CPsetNetwork-pointer.
       
    95         */
       
    96         IMPORT_C CPsetNetwork* CreateNetworkObjectL(
       
    97             MPsetNetworkInfoObserver& aObserver );
       
    98 
       
    99         /**
       
   100         * Creates refresh handler object.
       
   101         * 
       
   102         * @since 2.8.
       
   103         * @return Return Refresh handler pointer.
       
   104         */
       
   105         IMPORT_C CPSetRefreshHandler* CreateRefreshHandlerL();
       
   106 
       
   107         /**
       
   108         * Creates CPsetNetwork-object.
       
   109         * 
       
   110         * @param aObserver Observer to CPsetNetwork class.
       
   111         * @return Returns CPsetNetwork-pointer.
       
   112         */
       
   113         IMPORT_C CPsetNetwork* CreateNetworkModeObjectL(
       
   114             MPsetNetworkModeObserver& aModeObserver );
       
   115 
       
   116 
       
   117     private: //constructors
       
   118 
       
   119         void ConstructL();
       
   120 
       
   121     private: //new
       
   122 
       
   123         TInt ConnectServer();
       
   124 
       
   125     private:
       
   126         //Provides client access to mobile phone functionality provided by TSY.
       
   127         /*****************************************************
       
   128         *    Series 60 Customer / ETel
       
   129         *    Series 60  ETel API
       
   130         *****************************************************/
       
   131         RMobilePhone iPhone;
       
   132         //ETEL telephony server.
       
   133         /*****************************************************
       
   134         *    Series 60 Customer / ETel
       
   135         *    Series 60  ETel API
       
   136         *****************************************************/
       
   137         RTelServer   iServer;
       
   138         //Provides client access to mobile line functionality provided by TSY.
       
   139         /*****************************************************
       
   140         *    Series 60 Customer / ETel
       
   141         *    Series 60  ETel API
       
   142         *****************************************************/
       
   143         RMobileLine  iLine;
       
   144     };
       
   145 
       
   146 #endif // PSETCONTAINER_H
       
   147 
       
   148 // End of File