phonebookui/Phonebook2/Application/inc/CPbk2UIApplicationServices.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 application services.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2UIAPPLICATIONSERVICES_H
       
    20 #define CPBK2UIAPPLICATIONSERVICES_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <CPbk2ApplicationServices.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPbk2CommandHandler;
       
    28 class CSendUi;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Phonebook 2 application services.
       
    34  * Responsible for owning and delivering commonly used shared objects
       
    35  * and providing some common application level services.
       
    36  */
       
    37 class CPbk2UIApplicationServices : public CBase,
       
    38                                    public MPbk2ApplicationServices,
       
    39                                    public MPbk2ApplicationServices2
       
    40     {
       
    41     public: // Constructor and destructor
       
    42 
       
    43         /**
       
    44          * Creates a new instance of this class.
       
    45          *
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         static CPbk2UIApplicationServices* NewL();
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CPbk2UIApplicationServices();
       
    54 
       
    55     public: // From MPbk2ApplicationServices
       
    56         CVPbkContactManager& ContactManager() const;
       
    57         MPbk2CommandHandler* CommandHandlerL();
       
    58         MPbk2ContactNameFormatter& NameFormatter() const;
       
    59         CPbk2SortOrderManager& SortOrderManager() const;
       
    60         CSendUi* SendUiL();
       
    61         CPbk2StorePropertyArray& StoreProperties() const;
       
    62         CPbk2FieldPropertyArray& FieldProperties() const;
       
    63         CPbk2StoreConfiguration& StoreConfiguration() const;
       
    64         MPbk2StoreObservationRegister& StoreObservationRegister() const;
       
    65         MPbk2StoreValidityInformer& StoreValidityInformer() const;
       
    66         MPbk2ContactViewSupplier& ViewSupplier() const;
       
    67         TInt GlobalMenuFilteringFlagsL() const;
       
    68         TBool LocallyVariatedFeatureEnabled(
       
    69             TVPbkLocalVariantFlags aFeatureFlag);
       
    70         TAny* MPbk2ApplicationServicesExtension( TUid aExtensionUid );
       
    71 
       
    72     public: // From MPbk2ApplicationServices2
       
    73         CPbk2StoreManager& StoreManager() const;
       
    74         CPbk2ServiceManager& ServiceManager() const;
       
    75 
       
    76     private: // Implementation
       
    77         CPbk2UIApplicationServices();
       
    78 
       
    79         void ConstructL();
       
    80 
       
    81     private: // Data
       
    82 
       
    83         /// Own: Base Application services
       
    84         CPbk2ApplicationServices* iAppServices;
       
    85         /// Own: Command handler
       
    86         CPbk2CommandHandler* iCommandHandler;
       
    87         /// Own: Send UI
       
    88         CSendUi* iSendUi;
       
    89         /// Ref: Open file server session from coeenv
       
    90         RFs& iFsSession;
       
    91     };
       
    92 
       
    93 #endif // CPBK2UIAPPLICATIONSERVICES_H
       
    94 
       
    95 // End of File