yast2-sound
|
00001 // -*- c++ -*- 00002 00022 #ifndef __AUDIOAGENT 00023 #define __AUDIOAGENT 00024 00025 #include <scr/SCRAgent.h> 00026 00027 using std::string; 00028 using std::vector; 00029 using std::map; 00030 00031 #include "AlsaAudio.h" 00032 #include "OSSAudio.h" 00033 00034 /* An interface class between YaST2 and RcFile */ 00035 class AudioAgent : public SCRAgent { 00036 public: 00037 AudioAgent(); 00038 virtual ~AudioAgent(); 00039 00040 virtual YCPValue Read ( const YCPPath &path, 00041 const YCPValue& arg = YCPNull(), 00042 const YCPValue& opt = YCPNull()); 00043 00044 virtual YCPBoolean Write ( const YCPPath &path, 00045 const YCPValue& value, 00046 const YCPValue& arg = YCPNull()); 00047 00048 virtual YCPList Dir ( const YCPPath& path); 00049 00050 virtual YCPValue Execute ( const YCPPath& path, 00051 const YCPValue& value = YCPNull(), 00052 const YCPValue& arg = YCPNull()); 00053 00054 virtual YCPValue otherCommand(const YCPTerm& term); 00055 }; 00056 00057 #endif /* _AudioAgent_h */