5 * Copyright 2002 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library 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 GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <glib/gquark.h>
23 #include <glibmm/quark.h>
28 QueryQuark::QueryQuark(const GQuark& q)
32 QueryQuark::QueryQuark(const ustring& s)
33 : quark_(g_quark_try_string(s.c_str()))
36 QueryQuark::QueryQuark(const char* s)
37 : quark_(g_quark_try_string(s))
40 QueryQuark& QueryQuark::operator=(const QueryQuark& q)
45 QueryQuark::operator ustring() const
47 return ustring(g_quark_to_string(quark_));
51 Quark::Quark(const ustring& s)
52 : QueryQuark(g_quark_from_string(s.c_str()))
55 Quark::Quark(const char* s)
56 : QueryQuark(g_quark_from_string(s))
64 GQuark quark_cpp_wrapper_deleted_ = 0;
66 } /* namespace Glib */