DBus-1-TQt
1.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
tqdbusvariant.h
Go to the documentation of this file.
1
/* qdbusvariant.h DBUS variant struct
2
*
3
* Copyright (C) 2005 Harald Fernengel <harry@kdevelop.org>
4
*
5
* Licensed under the Academic Free License version 2.1
6
*
7
* This program 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
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20
* USA.
21
*
22
*/
23
24
#ifndef TQDBUSVARIANT_H
25
#define TQDBUSVARIANT_H
26
27
#include "
tqdbusmacros.h
"
28
#include "
tqdbusdata.h
"
29
30
#include <tqstring.h>
31
56
class
TQDBUS_EXPORT
TQT_DBusVariant
57
{
58
public
:
62
TQT_DBusVariant
() {}
63
69
TQT_DBusVariant
(
const
TQT_DBusVariant
& other)
70
{
71
signature = other.
signature
;
72
value = other.
value
;
73
}
74
83
inline
bool
operator==(
const
TQT_DBusVariant
& other)
const
84
{
85
if
(&other ==
this
)
return
true
;
86
87
return
signature == other.
signature
&& value == other.
value
;
88
}
89
98
inline
bool
operator!=(
const
TQT_DBusVariant
& other)
const
99
{
100
if
(&other ==
this
)
return
false
;
101
102
return
signature != other.
signature
|| value != other.
value
;
103
}
104
105
public
:
111
TQString
signature
;
112
116
TQT_DBusData
value
;
117
};
118
119
#endif
120
build
buildd
dbus-1-tqt-14.1.0~r197
src
tqdbusvariant.h
Generated on Mon Feb 3 2020 00:28:27 for DBus-1-TQt by
1.8.1.2