2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Declaration of RFavouritesHandle
19 #ifndef FAVOURITES_HANDLE_H
20 #define FAVOURITES_HANDLE_H
25 #include <favouritessession.h>
30 * RFavouritesHandle is the favourite object handle.
32 class RFavouritesHandle
35 public: // Constructor and destructor
41 inline RFavouritesHandle();
48 IMPORT_C void Close();
50 public: // New methods
55 * @return Handle number.
57 inline TInt Handle() const;
59 protected: // New methods
64 * @param aSess Session to be used.
65 * @param aFunction Function.
66 * @param aArgs Arguments.
71 RFavouritesSession& aSess,
77 * Open this object using other object.
79 * @param aHandle Handle used to open this object.
80 * @param aFunction Function.
81 * @param aArgs Arguments.
86 RFavouritesHandle& aHandle,
92 * Message passing routine.
94 * @param aFunction Function.
95 * @param aArgs Arguments.
96 * @param aStatus Request status.
101 const TIpcArgs& aArgs,
102 TRequestStatus& aStatus
106 * Message passing routine.
108 * @param aFunction Function.
109 * @param aArgs Arguments.
110 * @return Error code.
112 TInt SendReceive( TInt aFunction, const TIpcArgs& aArgs ) const;
115 * Message passing routine.
117 * @param aFunction Function.
118 * @return Error code.
120 TInt SendReceive( TInt aFunction ) const;
124 RFavouritesSession iSess; ///< Session handle.
125 TInt iHandle; ///< Handle number.
129 #include <favouriteshandle.inl>