1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 #ifndef PVMF_ERRORINFOMESSAGE_EXTENSION_H_INCLUDED 19 #define PVMF_ERRORINFOMESSAGE_EXTENSION_H_INCLUDED 20 21 #ifndef OSCL_BASE_H_INCLUDED 22 #include "oscl_base.h" 23 #endif 24 #ifndef PV_UUID_H_INCLUDED 25 #include "pv_uuid.h" 26 #endif 27 #ifndef PV_INTERFACE_H 28 #include "pv_interface.h" 29 #endif 30 31 32 #define PVMFErrorInfoMessageInterfaceUUID PVUuid(0xbddbb012,0x07e0,0x455e,0x8b,0xe3,0xdc,0x1e,0x4e,0xc1,0xbc,0xaa) 33 34 class PVMFErrorInfoMessageInterface : public PVInterface 35 { 36 public: 37 /* 38 Returns the code and space UUID for this error/info message 39 40 @param aCode Reference to an integer which will be filled in with event code 41 @param aUuid Reference to a PVUuid which will be filled in with UUID assocated to event code 42 43 @return None 44 */ 45 virtual void GetCodeUUID(int32& aCode, PVUuid& aUuid) = 0; 46 47 /* 48 Returns a pointer to the next error/info message in the linked list. If NULL, 49 the current error/info message is the last element in the list. 50 51 @return Pointer to the next message in the list. NULL if at the end of list 52 */ 53 virtual PVMFErrorInfoMessageInterface* GetNextMessage() = 0; 54 55 // From PVInterface 56 /* 57 Increments the reference count for this error message object 58 */ 59 virtual void addRef() = 0; 60 /* 61 Decrements the reference count for this error message object and deletes 62 this object if count goes to 0. 63 */ 64 virtual void removeRef() = 0; 65 /* 66 Returns the extension interface for the specified UUID if this error 67 message object supports it. If the requested extension interface is supported 68 true is returned, else false. 69 */ 70 virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0; 71 }; 72 73 74 #endif // PVMF_ERRORINFOMESSAGE_EXTENSION_H_INCLUDED 75 76