00001 /* 00002 * ============================================================================== 00003 * Name : MSenServiceConsumer.h 00004 * Part of : Web Services Connection 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright © 2002-2005 Nokia. All rights reserved. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia. All rights are reserved. Copying, including 00013 * reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia. 00018 * ============================================================================== 00019 */ 00020 00021 #ifndef M_SEN_SERVICE_CONSUMER_H 00022 #define M_SEN_SERVICE_CONSUMER_H 00023 00024 const TUid KSenInterfaceUidFilesObserver = { 0x101F9742 }; // MSenFilesObserver 00025 const TUid KSenInterfaceUidAuthenticationProvider = { 0x10282C6F }; // MSenAuthenticationProvider 00026 // CLASS DECLARATION 00027 00031 class MSenServiceConsumer 00032 { 00033 public: 00034 00035 // New functions 00036 00045 virtual void HandleMessageL(const TDesC8& aMessage) = 0; 00046 00072 virtual void HandleErrorL(const TInt aErrorCode, 00073 const TDesC8& aErrorMessage) = 0; 00074 00091 virtual void SetStatus(const TInt aStatus) = 0; 00092 }; 00093 00097 class MSenFilesObserver 00098 { 00099 public: 00109 virtual void TransferProgress(TInt aTxnId, TBool aIncoming, const TDesC8& aMessage, 00110 const TDesC8& aCid, TInt aProgress) = 0; 00111 }; 00112 class MSenExtendedConsumerInterface 00113 { 00114 public: 00115 inline virtual TAny* GetInterfaceByUid( TUid /* aUID */ ) { return NULL; }; 00116 }; 00117 00118 #endif // M_SEN_SERVICE_CONSUMER_H 00119 00120 // End of File