00001 /* Copyright (C) 2000 KOM/Darmstadt University of Technology 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, code may be used in unmodified form provided 00006 * that this copyright notice and this permission notice appear in 00007 * supporting documentation. 00008 * 00009 * This software is provided "as is" and without any express or implied 00010 * warranties, including, without limitation, the implied warranty of 00011 * fitness for a particular purpose. 00012 * 00013 * The code may be subjected to the GNU General Public License, Version 2, 00014 * and re-distributed under the terms of this license. 00015 * As a special exception, permission is granted to link this code 00016 * with the Qt library and distribute executables, as long as you 00017 * follow the requirements of the GNU GPL in regard to all of the 00018 * software in the executable aside from Qt. 00019 * 00020 * Commercial use other than under the terms of the GNU General Public 00021 * License is allowed only after express negotiation of conditions 00022 * with the authors. 00023 */ 00024 #ifndef SH_GRAPH_MANAGER_H 00025 #define SH_GRAPH_MANAGER_H 00026 00027 #include <sys/types.h> 00028 #include <sys/time.h> 00029 00030 #include "MNArrayList.h" 00031 #include "MNSelector.h" 00032 #include "dictionary.h" 00033 #include "GMUser.h" 00034 #include "SH.h" 00035 00036 class MNStreamer; 00037 class MNString; 00038 00039 00044 class SHGraphManager 00045 { 00046 int _last_sh_id; 00047 MNSelector& _main_selector; 00048 00049 GMUser* _user; 00050 00051 00052 private: 00056 SHGraphManager(const SHGraphManager & orig); 00057 00061 SHGraphManager& operator=( const SHGraphManager& orig ); 00062 00063 public: 00067 GMUser* getUser(); 00068 00069 SHGraphManager( GMUser* user, MNSelector& sel ); 00070 00071 virtual ~SHGraphManager(); 00072 00073 MNSelector& mainSelector( ); 00074 00076 int get_sh_id( SH::Base* sh ); 00077 00078 // change for subsessions 00079 // virtual bool graphManNotify( SH::Base* caller, SH::Notification attribute, void* msg ) = 0; 00080 virtual bool graphManNotify( int idx, SH::Base* caller, SH::Notification attribute, void* msg ) = 0; 00081 00082 enum GetValue 00083 { 00084 GET_SSRC 00085 }; 00086 00099 virtual bool synchronousGet( GetValue what, u_int32& outVar ); 00100 00101 }; 00102 00104 00105 #endif /* SH_GRAPH_MANAGER_H */ 00106