include/avcap/ConnectorManager.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de> 
00003  *
00004  * This file is part of avcap.
00005  *
00006  * avcap is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * avcap is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with avcap.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 /* avcap is free for non-commercial use.
00021  * To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>
00022  */
00023 
00024 
00025 #ifndef CONNECTORMANAGER_H_
00026 #define CONNECTORMANAGER_H_
00027 
00028 #include <list>
00029 
00030 #include "Connector.h"
00031 #include "Manager.h"
00032 #include "avcap-export.h"
00033 
00034 namespace avcap
00035 {       
00036 class DeviceCollector;
00037 
00039          
00049         class AVCAP_Export ConnectorManager: public Manager<Connector>
00050         {       
00051         protected:
00052                 // Connector Lists
00053                 ListType                mVideoInputs;
00054                 ListType                mAudioInputs;
00055                 ListType                mVideoOutputs;
00056                 ListType                mAudioOutputs;
00057                 
00058         public:         
00060 
00062                 ConnectorManager(DeviceDescriptor *dd);
00063 
00065                 virtual ~ConnectorManager() = 0;
00066                 
00068 
00070                 virtual inline Connector* getVideoInput()
00071                         { return 0; }
00072 
00074 
00077                 virtual inline int setVideoInput(Connector* c)
00078                         { return -1; }
00079                         
00081 
00083                 virtual inline Connector* getAudioInput()
00084                         { return 0; }
00085 
00087 
00090                 virtual inline int setAudioInput(Connector* c)
00091                         { return -1; }
00092                 
00094 
00096                 virtual inline Connector* getVideoOutput()
00097                         { return 0; }
00098                 
00100 
00103                 virtual inline int setVideoOutput(Connector* c)
00104                         { return -1; }
00105                         
00107 
00109                 virtual inline Connector* getAudioOutput()
00110                         { return 0; }
00111 
00113 
00116                 virtual inline int setAudioOutput(Connector* c)
00117                         { return -1; }
00118 
00120 
00122                 inline const ListType& getVideoInputList() const 
00123                         { return mVideoInputs; }
00124                 
00126 
00128                 inline const ListType& getAudioInputList() const 
00129                         { return mAudioInputs; }        
00130 
00132 
00134                 inline const ListType& getVideoOutputList() const 
00135                         { return mVideoOutputs; }       
00136 
00138 
00140                 inline const ListType& getAudioOutputList() const 
00141                         { return mAudioOutputs; }
00142 
00144                 virtual void query() = 0;
00145 
00146         private:
00147                 void clearList(ConnectorManager::ListType& list);
00148         };
00149 }
00150 
00151 #endif //CONNECTORMANAGER_H_

Generated on Mon Nov 30 11:10:30 2009 for avcap-0.1 by  doxygen 1.5.1