00001 /* 00002 * ============================================================================ 00003 * Name : RFavouritesSession.h 00004 * Part of : Favourites Engine 00005 * Interface : Favourites Engine API 00006 * Description : Declaration of RFavouritesSession 00007 * Version : %Version% 00008 * 00009 * Copyright (C) 2004 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * 00019 * ============================================================================ 00020 */ 00021 00022 #ifndef FAVOURITES_SESSION_H 00023 #define FAVOURITES_SESSION_H 00024 00025 // INCLUDES 00026 00027 #include <e32base.h> 00028 00029 // CLASS DECLARATION 00030 00035 class RFavouritesSession : public RSessionBase 00036 { 00037 public: // New methods 00038 00044 IMPORT_C static TVersion Version(); 00045 00051 IMPORT_C TInt Connect(); 00052 00058 IMPORT_C void ResourceMark(); 00059 00066 IMPORT_C void ResourceCheck(); 00067 00073 IMPORT_C TInt ResourceCount(); 00074 00081 IMPORT_C TInt DeleteDatabase( const TDesC& aName ); 00082 00091 IMPORT_C void __DbgSetAllocFail 00092 ( RAllocator::TAllocFail aType, TInt aRate ); 00093 00094 public: // But not exported 00095 00103 inline void SendReceive 00104 ( 00105 TInt aFunction, 00106 const TIpcArgs& aArgs, 00107 TRequestStatus& aStatus 00108 ) const; 00109 00117 inline TInt SendReceive( TInt aFunction, const TIpcArgs& aArgs ) const; 00118 00125 inline TInt SendReceive( TInt aFunction ) const; 00126 00127 private: // New methods 00128 00134 TInt DoConnect(); 00135 00136 }; 00137 00138 #endif 00139 00140 #include <FavouritesSession.inl> 00141 00142 // End of File