QtGStreamer
0.10.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
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
Generated on Mon Sep 23 2013 15:13:54 for QtGStreamer by
1.8.4