uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/inc/s_vimpstengin.h
changeset 0 5e5d6b214f4f
child 10 78867dafe7eb
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2006, 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:  s_enginecontmgtextfeatures.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "mvimpstengine.h"
       
    19 #include "mvimpststoragecontactsobserver.h"
       
    20 #include "mvimpstenginecchuieventobserver.h"
       
    21 
       
    22 class TVIMPSTEnums;
       
    23 class MVIMPSTEngineExtentionFeatures;
       
    24 
       
    25 class vimpstengine_stub : public MVIMPSTEngine
       
    26 {
       
    27 public:		
       
    28 
       
    29     /**
       
    30             * See MVIMPSTEngine
       
    31             * 
       
    32             */
       
    33             TUint32 ServiceId() const  ;        
       
    34 
       
    35 
       
    36             /**
       
    37             * See MVIMPSTEngine
       
    38             * 
       
    39             */
       
    40             TVIMPSTEnums::TVIMPSTRegistrationState ServiceState() const ;
       
    41 
       
    42 
       
    43             /**
       
    44             * See MVIMPSTEngine
       
    45             * 
       
    46             */
       
    47             TInt GetBrandInfoL(TLanguage& aBrandLanguage, 
       
    48                         TInt& aBrandVersion, TDes8& aBrandId) const ;
       
    49 
       
    50 
       
    51 
       
    52             /**
       
    53             * See MVIMPSTEngine
       
    54             * 
       
    55             */          
       
    56             TBool IsSubServiceSupportedL(TVIMPSTEnums::SubServiceType aType) const ;
       
    57                         
       
    58 
       
    59             /**
       
    60             * See MVIMPSTEngine
       
    61             * 
       
    62             */
       
    63             TBool IsSubServiceEnabled(TVIMPSTEnums::SubServiceType aType) const ;
       
    64 
       
    65             /**
       
    66             * See MVIMPSTEngine
       
    67             * 
       
    68             */
       
    69             void ContactStoreIdL( 
       
    70                         TDes& aContactStoreId ) const ;
       
    71 
       
    72             /**
       
    73             * See MVIMPSTEngine
       
    74             * 
       
    75             */
       
    76             const TDesC& ServiceName() const ;
       
    77             
       
    78         
       
    79             /**
       
    80             * See MVIMPSTEngine
       
    81             * 
       
    82             */
       
    83              void RegisterServiceSessionObserverL
       
    84                                 (MVIMPSTEngineServiceStateEventObserver* aObserver) ;
       
    85              
       
    86             /**
       
    87             * See MVIMPSTEngine
       
    88             * 
       
    89             */
       
    90             void UnRegisterServiceSessionObserver
       
    91                                 (MVIMPSTEngineServiceStateEventObserver* aObserver) ;
       
    92                
       
    93 
       
    94             /**
       
    95             * See MVIMPSTEngine
       
    96             * 
       
    97             */  
       
    98             void IntializeStorageL() ;
       
    99 
       
   100             /**
       
   101             * See MVIMPSTEngine
       
   102             * 
       
   103             */  
       
   104             void UnIntializeStorage() ;         
       
   105 
       
   106 
       
   107             /**
       
   108             * See MVIMPSTEngine
       
   109             * 
       
   110             */
       
   111             MVIMPSTEngineSubService* SubService(TVIMPSTEnums::SubServiceType aType) const;
       
   112 
       
   113 
       
   114             /**
       
   115             * See MVIMPSTEngine
       
   116             * 
       
   117             */
       
   118             MVIMPSTEngineExtentionFeatures* ExtentionFeatures(TVIMPSTEnums::ExtentionType aType) const ;
       
   119 
       
   120 
       
   121         
       
   122             /**
       
   123             * See MVIMPSTEngine
       
   124             * 
       
   125             */
       
   126             HBufC* GetOwnUserIdFromCChOrStorageL() const;
       
   127            
       
   128 
       
   129         
       
   130             /**
       
   131             * See MVIMPSTEngine
       
   132             * 
       
   133             */
       
   134             TInt Login();
       
   135 
       
   136             /**
       
   137             * See MVIMPSTEngine
       
   138             * 
       
   139             */
       
   140             void LogoutL();
       
   141             
       
   142             /**
       
   143             * See MVIMPSTEngine
       
   144             * 
       
   145             */
       
   146             void DefaultDomainNameL( TDes& aDefaultDomainName ) const;
       
   147             
       
   148             /**
       
   149             * See MVIMPSTEngine
       
   150             * 
       
   151             */
       
   152             TInt ChangeConnectionL();
       
   153             /**
       
   154              * See MVIMPSTEngine
       
   155              * 
       
   156              * @return True if password is present in the settings else returns false
       
   157              *
       
   158              */
       
   159             TBool IsPasswordAvailableL();
       
   160             
       
   161             /**
       
   162              * See MVIMPSTEngine
       
   163              * 
       
   164             */
       
   165             TBool IsBlockSupportedL();
       
   166             
       
   167             /**
       
   168              * See MVIMPSTEngine
       
   169              * 
       
   170             */
       
   171             void DeleteDataBaseL();
       
   172             
       
   173             /**
       
   174              * See MVIMPSTEngine
       
   175              * 
       
   176             */
       
   177             MVIMPSTEnginePresenceSubService* GetPreseceSubService();
       
   178 
       
   179             /**
       
   180              * See MVIMPSTEngine
       
   181              * 
       
   182              */
       
   183             void FetchBlockedListL();
       
   184             
       
   185             /**
       
   186              * See MVIMPSTEngine
       
   187              * 
       
   188              */
       
   189             void RegisterBlockedListObserver(
       
   190                             MVIMPSTEngineBlockedListFetchEventObserver* aOb);
       
   191                             
       
   192                             
       
   193             /**
       
   194             *  See MVIMPSTEngine
       
   195             * 
       
   196             */
       
   197             void SetOwnUserIdIfChangedL(const TDesC& aUserId ) ;
       
   198             
       
   199             
       
   200             /**
       
   201             *  See MVIMPSTEngine
       
   202             * 
       
   203             */
       
   204             void RetriveContextIfCChEnabledL() ;
       
   205 
       
   206         private: // From MVIMPSTEngineServiceConnectionEventObserver
       
   207             /**
       
   208              * See MVIMPSTEngineServiceConnectionEventObserver
       
   209              */ 
       
   210             void  HandleServceConnectionEventL();
       
   211         
       
   212         private:
       
   213             /**
       
   214             * Returns a SubService is Supported or not
       
   215             * Components intertested in knowing whether a SubService is Supported or not can use this API
       
   216             * @param aType - Type of the SubService TVIMPSTEnums::SubServiceType - Defined in tvimpstenums.h
       
   217             * @return TBool, ETrue if the SubService is Supported in this Service, else returns EFalse
       
   218             */
       
   219             TBool IsSubServiceSupportedInternal(TVIMPSTEnums::SubServiceType aType) const ;
       
   220                 
       
   221         public:     
       
   222              /**
       
   223               * Called when all the contacts are fetched from the virtual store.
       
   224               * 
       
   225               * @since s60 5.0
       
   226               */
       
   227              void HandleContactFetchedL();
       
   228                   
       
   229         public: // From MVIMPSTStorageContactsObserver
       
   230            
       
   231            
       
   232             /**
       
   233             * HandleChange: To handle the Chnage event from the MCAStoredContactsObserver
       
   234             * @see MCAStoredContactsObserver
       
   235             * @param aList: reference to the list at which a change has occured
       
   236             * @param aContact:  reference to the contact at which a change has occured
       
   237             * @param aEventType: TVIMPSTEnums::TCAObserverEventType,type of change event that has occured 
       
   238             * @param aUserIdChanged, ETrue if userid has changed, else EFalse.
       
   239             * @return void
       
   240             */
       
   241              void HandleStorageChangeL( TVIMPSTEnums::TVIMPSTStorgaeEventType aEventType,
       
   242                                         MVIMPSTStorageContactList* aList, 
       
   243                                         MVIMPSTStorageContact* aContact,
       
   244                                         TInt aContactIndex );
       
   245 
       
   246 
       
   247              //From MVIMPSTEngineCchUiEventObserver
       
   248              /**
       
   249               * Handles the change connection event from CCHUI
       
   250               *@ return void
       
   251               */
       
   252              void HandleChangeConnectionEventL();
       
   253 
       
   254 };
       
   255