root/trunk/freebob/src/cmhandler.h

Revision 60, 1.3 kB (checked in by wagi, 19 years ago)

Connection management implementation start.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* cmhandler.h
2  * Copyright (C) 2004 by Daniel Wagner
3  *
4  * This file is part of FreeBob.
5  *
6  * FreeBob is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * FreeBob is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FreeBob; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA.
19  */
20
21 #ifndef CMHANDLER_H
22 #define CMHANDLER_H
23
24 #include "freebob.h"
25 #include "debugmodule.h"
26
27 class Ieee1394Service;
28 class AvDevice;
29
30 class CMHandler
31 {
32 public:
33     FBReturnCodes initialize();
34     void shutdown();
35
36     static CMHandler* instance();
37     FBReturnCodes createConnection( AvDevice* avDevice );
38     FBReturnCodes destroyConnection( AvDevice* avDevice );
39
40 private:
41     CMHandler();
42     ~CMHandler();
43
44     static CMHandler* m_pInstance;
45     Ieee1394Service* m_pIeee1394Service;
46     bool m_bInitialised;
47
48     DECLARE_DEBUG_MODULE;
49 };
50
51 #endif
Note: See TracBrowser for help on using the browser.