blob: 2675be6e518faa2fcc3ee90086ebd3bf051e714f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
/*
videoinput.cpp - Kopete Video Input Class
Copyright (c) 2005-2006 by Cláudio da Silveira Pinheiro <[email protected]>
Kopete (c) 2002-2003 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#define ENABLE_AV
#ifndef KOPETE_AVVIDEOCONTROL_H
#define KOPETE_AVVIDEOCONTROL_H
#include <asm/types.h>
#undef __STRICT_ANSI__
#ifndef __u64 //required by videodev.h
#define __u64 unsigned long long
#endif // __u64
#ifndef __s64 //required by videodev.h
#define __s64 long long
#endif // __s64
#include <qstring.h>
#include <kdebug.h>
#include <qvaluevector.h>
#include "kopete_export.h"
namespace Kopete {
namespace AV {
typedef enum
{
CONTROLTYPE_INTEGER = 0,
CONTROLTYPE_BOOLEAN = 1,
CONTROLTYPE_MENU = 2,
CONTROLTYPE_BUTTON = 3
} control_type;
typedef enum
{
CONTROLFLAG_DISABLED = (1 << 0), // This control is permanently disabled and should be ignored by the application.
CONTROLFLAG_GRABBED = (1 << 1), // This control is temporarily unchangeable,
CONTROLFLAG_READONLY = (1 << 2), // This control is permanently readable only.
CONTROLFLAG__UPDATE = (1 << 3), // Changing this control may affect the value of other controls within the same control class.
CONTROLFLAG_INACTIVE = (1 << 4), // This control is not applicable to the current configuration.
CONTROLFLAG_SLIDER = (1 << 5) // This control is best represented as a slider.
} control_flag;
/**
@author Kopete Developers <[email protected]>
*/
class VideoControl{
public:
VideoControl();
~VideoControl();
protected:
__u32 m_id;
control_type m_type;
QString m_name;
__s32 m_minimum;
__s32 m_maximum;
__s32 m_step;
__s32 m_default;
__u32 m_flags;
};
}
}
#endif
|