cbsref/telephonyrefplugins/atltsy/handler/inc/cltsyphonebookonhandler.h
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // CLtsyPhonebookOnHandler
       
    15 
       
    16 #ifndef __CLTSYDISPATCHPHONEBOOKONHANDLER_H_
       
    17 #define __CLTSYDISPATCHPHONEBOOKONHANDLER_H_
       
    18 
       
    19 // INCLUDES
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 
       
    23 #include <ctsy/ltsy/mltsydispatchinterface.h>
       
    24 #include <ctsy/ltsy/mltsydispatchphonebookoninterface.h>
       
    25 #include "misdispatchinterfacesupported.h"
       
    26 #include "ltsymacros.h"
       
    27 
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CCtsyDispatcherCallback;
       
    32 
       
    33 // Can be removed in real LTSY implementation
       
    34 MTEST_FORWARD_DECLARE_MOCKLTSYENGINE
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39  * Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these
       
    40  * interfaces to make requests to the Licensee LTSY.
       
    41  */
       
    42 class CLtsyPhonebookOnHandler : 	public CBase,
       
    43 							public MIsDispatchInterfaceSupported, 
       
    44 							public MLtsyDispatchPhonebookOnStoreRead,
       
    45 							public MLtsyDispatchPhonebookOnStoreDeleteAll,
       
    46 							public MLtsyDispatchPhonebookOnStoreReadEntry,
       
    47 							public MLtsyDispatchPhonebookOnStoreGetInfo,
       
    48 							public MLtsyDispatchPhonebookOnStoreGetReadStoreSize,
       
    49 							public MLtsyDispatchPhonebookOnStoreDeleteEntry,
       
    50 							public MLtsyDispatchPhonebookOnStoreWriteEntry,
       
    51 							public MLtsyDispatchPhonebookOnStoreWrite,
       
    52 							public MLtsyDispatchPhonebookOnStoreGetStoreSize
       
    53 							
       
    54 	{
       
    55 public:
       
    56 
       
    57 	virtual ~CLtsyPhonebookOnHandler();
       
    58 	static CLtsyPhonebookOnHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    59 	static CLtsyPhonebookOnHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    60 
       
    61 	// From MIsDispatchInterfaceSupported
       
    62 	virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId);
       
    63 	void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask);
       
    64 	
       
    65 
       
    66 
       
    67     // From MLtsyDispatchPhonebookOnStoreRead
       
    68     virtual TInt HandleStoreReadReqL(TInt aIndex);
       
    69 
       
    70     // From MLtsyDispatchPhonebookOnStoreDeleteAll
       
    71     virtual TInt HandleStoreDeleteAllReqL();
       
    72 
       
    73     // From MLtsyDispatchPhonebookOnStoreReadEntry
       
    74     virtual TInt HandleStoreReadEntryReqL(TInt aIndex);
       
    75 
       
    76     // From MLtsyDispatchPhonebookOnStoreGetInfo
       
    77     virtual TInt HandleStoreGetInfoReqL();
       
    78 
       
    79     // From MLtsyDispatchPhonebookOnStoreGetReadStoreSize
       
    80     virtual TInt HandleStoreGetReadStoreSizeReqL();
       
    81 
       
    82     // From MLtsyDispatchPhonebookOnStoreDeleteEntry
       
    83     virtual TInt HandleStoreDeleteEntryReqL(TInt aIndex);
       
    84 
       
    85     // From MLtsyDispatchPhonebookOnStoreWriteEntry
       
    86     virtual TInt HandleStoreWriteEntryReqL(const RMobileONStore::TMobileONEntryV1& aMobileOnEntry);
       
    87 
       
    88     // From MLtsyDispatchPhonebookOnStoreWrite
       
    89     virtual TInt HandleStoreWriteReqL(const RMobileONStore::TMobileONEntryV1& aMobileOnEntry);
       
    90 
       
    91     // From MLtsyDispatchPhonebookOnStoreGetStoreSize
       
    92     virtual TInt HandleStoreGetStoreSizeReqL();
       
    93 
       
    94 
       
    95 private:
       
    96 	
       
    97 	CLtsyPhonebookOnHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    98 	void ConstructL();
       
    99 
       
   100 private:
       
   101 	
       
   102 	// Not owned
       
   103 	
       
   104 	/**
       
   105 	 * Callback object in the CTSY Dispatcher.
       
   106 	 * 
       
   107 	 * Used to complete a request back to the CTSY Dispatcher.
       
   108 	 */
       
   109 	CCtsyDispatcherCallback& iCtsyDispatcherCallback;
       
   110 	
       
   111 public:
       
   112 
       
   113 
       
   114 	}; // class CLtsyPhonebookOnHandler
       
   115 
       
   116 #endif // __CLTSYDISPATCHPHONEBOOKONHANDLER_H_
       
   117