root/branches/libfreebob-motu/src/bounce/bounce_avdevice.h

Revision 197, 1.8 kB (checked in by pieterpalmers, 18 years ago)

- implemented first steps of MOTU device discovery

Line 
1 /* bounce_avdevice.h
2  * Copyright (C) 2006 by Pieter Palmers
3  * Copyright (C) 2006 by Daniel Wagner
4  *
5  * This file is part of FreeBob.
6  *
7  * FreeBob is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  * FreeBob is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with FreeBob; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19  * MA 02111-1307 USA.
20  */
21
22 #ifndef BOUNCEDEVICE_H
23 #define BOUNCEDEVICE_H
24
25 #include "iavdevice.h"
26
27 #include "debugmodule/debugmodule.h"
28 #include "libfreebobavc/avc_definitions.h"
29 #include "libfreebobavc/avc_extended_cmd_generic.h"
30 #include "libfreebob/xmlparser.h"
31 #include "libfreebob/freebob_bounce.h"
32
33 class ConfigRom;
34 class Ieee1394Service;
35
36 namespace Bounce {
37
38 class BounceDevice : public IAvDevice {
39 public:
40     BounceDevice( Ieee1394Service& ieee1394Service,
41                   int nodeId,
42                   int verboseLevel );
43     virtual ~BounceDevice();
44
45     virtual bool discover();
46     virtual ConfigRom& getConfigRom() const;
47     virtual bool addXmlDescription( xmlNodePtr deviceNode );
48     virtual bool setSamplingFrequency( ESamplingFrequency samplingFrequency );
49     virtual void showDevice() const;
50
51 protected:
52     Ieee1394Service* m_1394Service;
53     ConfigRom*       m_configRom;
54     int              m_nodeId;
55     int              m_verboseLevel;
56
57 private:
58         std::string xmlDescription;
59
60
61     DECLARE_DEBUG_MODULE;
62 };
63
64 }
65
66 #endif
Note: See TracBrowser for help on using the browser.