phonebookui/Phonebook2/ServerApplication/inc/CPbk2ServerAppDocument.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 server application document.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2SERVERAPPDOCUMENT_H
       
    20 #define CPBK2SERVERAPPDOCUMENT_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <CPbk2DocumentBase.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CPbk2UIExtensionManager;
       
    27 class MPbk2ApplicationServices;
       
    28 class CPbk2ApplicationServices;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Phonebook 2 server application document.
       
    34  * Responsible for creating application UI and creating and owning
       
    35  * application services object and UI extension manager.
       
    36  */
       
    37 class CPbk2ServerAppDocument : public CPbk2DocumentBase
       
    38     {
       
    39     public: // Construction and destruction
       
    40 
       
    41         /**
       
    42          * Creates a new instance of this class.
       
    43          *
       
    44          * @param aApp  Reference to EIK application object.
       
    45          * @return  A new instance of this class.
       
    46          */
       
    47         static CPbk2ServerAppDocument* NewL(
       
    48                 CEikApplication& aApp );
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CPbk2ServerAppDocument();
       
    54 
       
    55     public: // Interface
       
    56 
       
    57         /**
       
    58          * Initializes Phonebook 2 server application globals.
       
    59          */
       
    60         void CreateGlobalsL();
       
    61 
       
    62         /**
       
    63          * Initializes Phonebook 2 application services.
       
    64          *
       
    65          * @return  Phonebook 2 application services.
       
    66          */
       
    67         MPbk2ApplicationServices* ApplicationServicesL();
       
    68 
       
    69     public: // From CPbk2DocumentBase
       
    70         CEikAppUi* CreateAppUiL();
       
    71         CPbk2UIExtensionManager& ExtensionManager() const;
       
    72 
       
    73     private: // Implementation
       
    74         CPbk2ServerAppDocument(
       
    75                 CEikApplication& aApp );
       
    76 
       
    77     private: // Data
       
    78         /// Own: Extension manager
       
    79         CPbk2UIExtensionManager* iExtensionManager;
       
    80         /// Own: Application services
       
    81         CPbk2ApplicationServices* iAppServices;
       
    82     };
       
    83 
       
    84 #endif // CPBK2SERVERAPPDOCUMENT_H
       
    85 
       
    86 // End of File