phoneengine/PhoneCntFinder/inc/CPhoneCntFactoryImpl.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Factory class's implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHCNTFACTORYIMPL_H
       
    20 #define CPHCNTFACTORYIMPL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include    <e32base.h>
       
    24 #include    <cphonecntfactory.h>
       
    25 #include    <RPbkViewResourceFile.h>
       
    26 
       
    27 class CPhCntPhonebookServices;
       
    28 class CPhCntContactStores;
       
    29 class CPhCntContactDataSelection;
       
    30 
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CPhoneCntPbkOwner;
       
    34 class MPhCntStoreLoader;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  Factory class's implementation. Not for external use.
       
    40 *
       
    41 *  @lib PhoneCntFinder
       
    42 *  @since 1.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CPhCntFactoryImpl ) : public CPhCntFactory
       
    45     {
       
    46     public: // Constructors and destructors.
       
    47 
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         *
       
    51         * @return new instance of the class.
       
    52         */
       
    53         static CPhCntFactoryImpl* NewL();
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         ~CPhCntFactoryImpl();
       
    59 
       
    60     public: // From base classes.
       
    61 
       
    62         /**
       
    63         * From CPhCntFactory
       
    64         */
       
    65         CPhCntSpeedDialMonitor* CreateSpeedDialMonitorL();
       
    66 
       
    67         /**
       
    68         * From CPhCntFactory
       
    69         */
       
    70         CPhCntThumbnailLoader* CreateThumbnailLoaderL(
       
    71             MPhCntThumbnailLoaderObserver& aObserver );
       
    72 
       
    73         /**
       
    74         * From CPhCntFactory
       
    75         */
       
    76         CPhCntSingleItemFetch* CreateSingleItemFetchL();
       
    77 
       
    78         /**
       
    79         * From CPhCntFactory
       
    80         */
       
    81         CPhCntRfsHandler* CreateRfsHandlerL();
       
    82 
       
    83         /**
       
    84         * From CPhCntFactory
       
    85         */
       
    86         CPhCntMmiSecurity* CreateMmiSecurityL();
       
    87       
       
    88         /**
       
    89         * From CPhCntFactory
       
    90         */
       
    91         CPhoneCntSaveAddToName* CreateSaveAddToNameL();
       
    92 
       
    93         /**
       
    94         * From CPhCntFactory
       
    95         */
       
    96         CPhCntMatcher* CreateContactMatcherL();
       
    97 
       
    98         /**
       
    99         * From CPhCntFactory
       
   100         */
       
   101         CPhCntProfileEngine* CreateProfileEngineL();
       
   102 
       
   103         /**
       
   104         * From CPhCntFactory
       
   105         */
       
   106         CBase* CreateProfileEngineNotifyHandlerL( 
       
   107             MProfileChangeObserver* aObserver );
       
   108             
       
   109         /**
       
   110          * Creates contact id instance.
       
   111          *
       
   112          * @since S60 v3.1
       
   113          * @return New instance.
       
   114          */
       
   115         CPhCntContactId* CreateContactIdL();
       
   116         
       
   117         /**
       
   118          * From CPhCntFactory
       
   119          * Creates an contact id instance.
       
   120          *
       
   121          * @since S60 v3.1
       
   122          * @return New instance of CPhCntContactId
       
   123          */
       
   124         CPhCntContactId* CreateContactIdL( TContactItemId aContactId );
       
   125         
       
   126         /**
       
   127          * From CPhCntFactory
       
   128          *
       
   129          * @since S60 v3.2
       
   130          * @see CPhCntFactory
       
   131          */
       
   132         CPhCntContactId* CreateContactIdL( const TDesC8& aContactLink );
       
   133 
       
   134         /**
       
   135          * From CPhCntFactory.
       
   136          * @since S60 v3.2
       
   137          * @see CPhCntFactory
       
   138          */
       
   139         CPhCntContactDataSelection* CreateContactDataSelectionL();
       
   140 
       
   141         /**
       
   142          * From CPhCntFactory.
       
   143          * @since S60 v9.1
       
   144          * @see CPhCntFactory
       
   145          */
       
   146         MPhCntStoreLoader* CreateContactStoreLoaderL();
       
   147         
       
   148         /**
       
   149          * From CPhCntFactory.
       
   150          * @since S60 v9.1
       
   151          * @see CPhCntFactory
       
   152          */
       
   153         void CreatePhonebookServicesL();
       
   154         
       
   155     private:
       
   156 
       
   157         /**
       
   158         * C++ constructor.
       
   159         */
       
   160         CPhCntFactoryImpl();
       
   161 
       
   162         /**
       
   163         * Symbian OS constructor.
       
   164         */
       
   165         void ConstructL();
       
   166         
       
   167         void CreateContactStoreAndManagerL();
       
   168 
       
   169     private:
       
   170         // Phonebook view resources
       
   171         RPbkViewResourceFile iPbkResource;
       
   172 
       
   173         // Has the SecUi been initialized
       
   174         TBool iSecUiInit;
       
   175 
       
   176         // Phonebook owner
       
   177         CPhoneCntPbkOwner* iPbkOwner;
       
   178 
       
   179         /**
       
   180          * Phonebook services.
       
   181          * own.
       
   182          */
       
   183         CPhCntPhonebookServices* iPhonebookServices;
       
   184         
       
   185         /** 
       
   186          * Contact stores.
       
   187          * Own.
       
   188          */
       
   189         CPhCntContactStores* iContactStores;
       
   190     };
       
   191 
       
   192 
       
   193 #endif      // CPHCNTFACTORYIMPL_H   
       
   194 
       
   195 // End of File