phonebookengines_old/contactsmodel/cntsrv/inc/CCntItemMsgHandler.h
changeset 40 b46a585f6909
equal deleted inserted replaced
37:fd64c38c277d 40:b46a585f6909
       
     1 /**
       
     2 * Copyright (c) 2007-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23 */
       
    24 
       
    25 #ifndef CNTITEMMSGHANDLER_H
       
    26 #define CNTITEMMSGHANDLER_H
       
    27 
       
    28 class CCntMsgHandler;
       
    29 
       
    30 /**
       
    31 CCntItemMsgHandler class handles Contact Item database CRUD operations. It uses
       
    32 a message handling method to handle the incoming op code.
       
    33 
       
    34 It delegates the incoming op code to appropriate message handling method by using
       
    35 a lookup table of member function pointers created by CCntServer.
       
    36 
       
    37 @internalComponent
       
    38 */
       
    39 class CCntItemMsgHandler : public CCntMsgHandler
       
    40 	{
       
    41 public:
       
    42 	static CCntItemMsgHandler* NewLC(CCntSession& aSession);
       
    43     virtual ~CCntItemMsgHandler();
       
    44 	TInt HandleMessageL(const RMessage2& aMessage);
       
    45 	
       
    46 private:
       
    47 	CCntItemMsgHandler(CCntSession& aSession);
       
    48 	
       
    49 public:
       
    50 	void ItemCreateL(const RMessage2& aMessage);
       
    51 	void ItemUpdateL(const RMessage2& aMessage);
       
    52 	void ItemDeleteL(const RMessage2& aMessage);
       
    53 	void ItemReadL(const RMessage2& aMessage);
       
    54 	void ItemCommitL(const RMessage2& aMessage);
       
    55 	void ItemOpenL(const RMessage2& aMessage);
       
    56 	void ItemCloseL(const RMessage2& aMessage);
       
    57 	
       
    58 	void ConnectionId(const RMessage2& aMessage);
       
    59 	void GetCurrentItemL(const RMessage2& aMessage);
       
    60 	void RemoveCurrentItemL(const RMessage2& aMessage);
       
    61 	void SetCurrentItemL(const RMessage2& aMessage);
       
    62 
       
    63 	void GetCurrentDb(const RMessage2& aMessage);
       
    64 	void SetCurrentDbL(const RMessage2& aMessage);
       
    65 	void GetSpeedDialContactIdAndPhoneNumberL(const RMessage2& aMessage);
       
    66 	void SetSpeedDialIdForPositionL(const RMessage2& aMessage);
       
    67 	void SetOwnCardL(const RMessage2& aMessage);
       
    68 	void GetOwnCardL(const RMessage2& aMessage);
       
    69 	void GetCollectionL(const RMessage2& aMessage);
       
    70 	
       
    71 	void SetSortPrefsL(const RMessage2& aMessage);
       
    72 	void GetSortPrefsL(const RMessage2& aMessage);
       
    73 	void SetDbViewContactTypeL(const RMessage2& aMessage);
       
    74 	void GetDbViewContactTypeL(const RMessage2& aMessage);
       
    75 	void DbContactCountL(const RMessage2& aMessage);
       
    76 	void FindAsyncL(const RMessage2& aMessage);
       
    77 	
       
    78 	void FindAsyncInitL(const RMessage2& aMessage);
       
    79 	void FindAsyncTextDefInitL(const RMessage2& aMessage);
       
    80 	void FindL(const RMessage2& aMessage);
       
    81 	void FilterDatabaseL(const RMessage2& aMessage);
       
    82 	void SetAsyncActivityL(const RMessage2& aMessage);
       
    83 	void ResourceCount(const RMessage2& aMessage);
       
    84 	void SetHeapFailure(const RMessage2& aMessage);
       
    85 	
       
    86 	void SeekContactL(const RMessage2& aMessage);
       
    87 	};
       
    88 	
       
    89 #endif