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 /** 19 * @file pvmf_interface.h 20 * @brief This file defines the PV interface class. 21 * This class serves as the base for interfaces and provides methods 22 * to query for other interfaces, and to increment and decrement reference counts. 23 * 24 */ 25 26 #ifndef PV_INTERFACE_H 27 #define PV_INTERFACE_H 28 29 30 #ifndef PV_UUID_H_INCLUDED 31 #include "pv_uuid.h" 32 #endif 33 34 class PVInterface 35 { 36 37 public: 38 virtual void addRef() = 0; 39 virtual void removeRef() = 0; 40 virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0; 41 ~PVInterface()42 virtual ~PVInterface() {} 43 }; 44 45 #endif 46