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_METADATAINFOMESSAGE_EXTENSION_H_INCLUDED 19 #define PVMF_METADATAINFOMESSAGE_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 #include "pvmi_kvp.h" 32 #include "oscl_vector.h" 33 34 #define PVMFMetadataInfoMessageInterfaceUUID PVUuid(0x936f5d11, 0x5ff8, 0x4596, 0x8e, 0xe2, 0x55, 0x4c, 0x1c, 0xa3, 0xf9, 0xbe ) 35 36 class PVMFMetadataInfoMessageInterface : public PVInterface 37 { 38 public: 39 /* 40 Returns the code and space UUID for this info message 41 42 @param aCode Reference to an integer which will be filled in with event code 43 @param aUuid Reference to a PVUuid which will be filled in with UUID assocated to event code 44 45 @return None 46 */ 47 virtual void GetCodeUUID(int32& aCode, PVUuid& aUuid) = 0; 48 49 /* 50 Returns a pointer to the next info message in the linked list. If NULL, 51 the current info message is the last element in the list. 52 53 @return Pointer to the next message in the list. NULL if at the end of list 54 */ 55 virtual Oscl_Vector<PvmiKvp, OsclMemAllocator>& GetMetadataVector() = 0; 56 57 // From PVInterface 58 /* 59 Increments the reference count for this info message object 60 */ 61 virtual void addRef() = 0; 62 /* 63 Decrements the reference count for this info message object and deletes 64 this object if count goes to 0. 65 */ 66 virtual void removeRef() = 0; 67 /* 68 Returns the extension interface for the specified UUID if this info 69 message object supports it. If the requested extension interface is supported 70 true is returned, else false. 71 */ 72 virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0; 73 }; 74 75 76 #endif // PVMF_METADATAINFOMESSAGE_EXTENSION_H_INCLUDED 77 78