QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
quark.cpp
00001 /*
00002     Copyright (C) 2009-2010  George Kiagiadakis <kiagiadakis.george@gmail.com>
00003     Copyright (C) 2010 Collabora Ltd.
00004       @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
00005 
00006     This library is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU Lesser General Public License as published
00008     by the Free Software Foundation; either version 2.1 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public License
00017     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #include "quark.h"
00020 #include <glib.h>
00021 
00022 namespace QGlib {
00023 
00024 //static
00025 Quark Quark::fromString(const char *str)
00026 {
00027     return g_quark_from_string(str);
00028 }
00029 
00030 //static
00031 Quark Quark::tryString(const char *str)
00032 {
00033     return g_quark_try_string(str);
00034 }
00035 
00036 QString Quark::toString() const
00037 {
00038     return QString::fromUtf8(g_quark_to_string(m_quark));
00039 }
00040 
00041 } //namespace QGlib