QtGStreamer
1.2.0
Loading...
Searching...
No Matches
QGlib
quark.cpp
1
/*
2
Copyright (C) 2009-2010 George Kiagiadakis <kiagiadakis.george@gmail.com>
3
Copyright (C) 2010 Collabora Ltd.
4
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
5
6
This library is free software; you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published
8
by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#include "quark.h"
20
#include <glib.h>
21
22
namespace
QGlib
{
23
24
//static
25
Quark
Quark::fromString
(
const
char
*str)
26
{
27
return
g_quark_from_string(str);
28
}
29
30
//static
31
Quark
Quark::tryString
(
const
char
*str)
32
{
33
return
g_quark_try_string(str);
34
}
35
36
QString
Quark::toString
()
const
37
{
38
return
QString::fromUtf8(g_quark_to_string(m_quark));
39
}
40
41
}
//namespace QGlib
QGlib::Quark
Wrapper class for GQuark.
Definition
quark.h:43
QGlib::Quark::toString
QString toString() const
Definition
quark.cpp:36
QGlib::Quark::fromString
static Quark fromString(const char *str)
Definition
quark.cpp:25
QGlib::Quark::tryString
static Quark tryString(const char *str)
Definition
quark.cpp:31
QGlib
Wrappers for Glib and GObject classes.
Generated by
1.9.8