1 /*
2  *  Entangle: Tethered Camera Control & Capture
3  *
4  *  Copyright (C) 2009-2017 Daniel P. Berrange
5  *
6  *  This program 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 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef __ENTANGLE_CAMERA_PREFERENCES_H__
22 #define __ENTANGLE_CAMERA_PREFERENCES_H__
23 
24 #include <glib-object.h>
25 
26 #include "entangle-camera.h"
27 
28 G_BEGIN_DECLS
29 
30 #define ENTANGLE_TYPE_CAMERA_PREFERENCES            (entangle_camera_preferences_get_type ())
31 #define ENTANGLE_CAMERA_PREFERENCES(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), ENTANGLE_TYPE_CAMERA_PREFERENCES, EntangleCameraPreferences))
32 #define ENTANGLE_CAMERA_PREFERENCES_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), ENTANGLE_TYPE_CAMERA_PREFERENCES, EntangleCameraPreferencesClass))
33 #define ENTANGLE_IS_CAMERA_PREFERENCES(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ENTANGLE_TYPE_CAMERA_PREFERENCES))
34 #define ENTANGLE_IS_CAMERA_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ENTANGLE_TYPE_CAMERA_PREFERENCES))
35 #define ENTANGLE_CAMERA_PREFERENCES_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), ENTANGLE_TYPE_CAMERA_PREFERENCES, EntangleCameraPreferencesClass))
36 
37 
38 typedef struct _EntangleCameraPreferences EntangleCameraPreferences;
39 typedef struct _EntangleCameraPreferencesPrivate EntangleCameraPreferencesPrivate;
40 typedef struct _EntangleCameraPreferencesClass EntangleCameraPreferencesClass;
41 
42 struct _EntangleCameraPreferences
43 {
44     GObject parent;
45 
46     EntangleCameraPreferencesPrivate *priv;
47 };
48 
49 struct _EntangleCameraPreferencesClass
50 {
51     GObjectClass parent_class;
52 };
53 
54 
55 GType entangle_camera_preferences_get_type(void) G_GNUC_CONST;
56 
57 EntangleCameraPreferences *entangle_camera_preferences_new(void);
58 
59 void entangle_camera_preferences_set_camera(EntangleCameraPreferences *preferences,
60                                             EntangleCamera *camera);
61 EntangleCamera *entangle_camera_preferences_get_camera(EntangleCameraPreferences *preferences);
62 
63 
64 gchar **entangle_camera_preferences_get_controls(EntangleCameraPreferences *prefs);
65 void entangle_camera_preferences_set_controls(EntangleCameraPreferences *prefs,
66                                               const gchar *const *controls);
67 
68 G_END_DECLS
69 
70 #endif /* __ENTANGLE_CAMERA_PREFERENCES_H__ */
71 
72 /*
73  * Local variables:
74  *  c-indent-level: 4
75  *  c-basic-offset: 4
76  *  indent-tabs-mode: nil
77  *  tab-width: 8
78  * End:
79  */
80