phonesrv_plat/phone_settings_notes_ui_api/inc/psuicontainer.h
changeset 51 12bc758d6a02
parent 48 78df25012fda
child 53 25b8d29b7c59
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
     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 *   CPsuiContainer class is responsible for loading/unloading
       
    16 *    the resources to be used by this dll. It is also
       
    17 *    the correct way to construct observers, since
       
    18 *    it gives the pointer to the resources in the
       
    19 *    construction process.
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef CPSUICONTAINER_H
       
    25 #define CPSUICONTAINER_H
       
    26 
       
    27 // INCLUDES
       
    28 #include <psuiwaitingobs.h> 
       
    29 #include <psuidivertobs.h> 
       
    30 #include <psuibarringobs.h> 
       
    31 #include <psuicliobserver.h> 
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CPsuiResourceLoader;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  CPsuiContainer class is responsible for loading/unloading the resources to
       
    40 *  be used by this dll. It is also the correct way to construct observers, 
       
    41 *  ince it gives the pointer to the resources in the construction process.
       
    42 *  @lib psui.lib
       
    43 *  @since 1.0
       
    44 */
       
    45 class CPsuiContainer : public CBase
       
    46     {
       
    47     public: // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Symbian OS two-phased constructor.
       
    51         *
       
    52         * @return Returns CPsuiContainer-pointer.
       
    53         */
       
    54         IMPORT_C static CPsuiContainer* NewL();
       
    55         
       
    56         /**
       
    57         * Destructor 
       
    58         */
       
    59         ~CPsuiContainer();
       
    60 
       
    61     public:
       
    62 
       
    63         /**
       
    64         * Creates Call Waiting observer.
       
    65         * 
       
    66         * @return Returns CreateCWObsL pointer.
       
    67         */
       
    68         IMPORT_C CPsuiWaitingObs* CreateCWObsL();
       
    69 
       
    70         /**
       
    71         * Creates Call Forwarding observer.
       
    72         * 
       
    73         * @return Returns CreateCFObsL pointer.
       
    74         */
       
    75         IMPORT_C CPsuiDivertObs* CreateCFObsL();
       
    76 
       
    77         /**
       
    78         * Creates Call Barring observer.
       
    79         * 
       
    80         * @return Returns CreateCBObsL pointer.
       
    81         */
       
    82         IMPORT_C CPsuiBarringObs* CreateCBObsL();
       
    83 
       
    84         /**
       
    85         * Creates Calling Identity observer.
       
    86         * 
       
    87         * @return Returns CreateCliObsL pointer.
       
    88         */
       
    89         IMPORT_C CPsuiCliObserver* CreateCliObsL();
       
    90 
       
    91 
       
    92     private: // private constructor
       
    93 
       
    94         void ConstructL();
       
    95 
       
    96     private: // member variables
       
    97 
       
    98         //reference to class' resource loader
       
    99         CPsuiResourceLoader* iAppEngineResourceLoader;
       
   100         
       
   101     };
       
   102 
       
   103 
       
   104 #endif //CPSUICONTAINER_H