advance compilation to include plugin_ui.cc
[ardour.git] / libs / glibmm2 / glibmm / quark.cc
1 /* $Id$ */
2
3 /* quark.cc
4  *
5  * Copyright 2002 The gtkmm Development Team
6  *
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.
11  *
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.
16  *
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.
20  */
21
22 #include <glib/gquark.h>
23 #include <glibmm/quark.h>
24
25 namespace Glib
26 {
27
28 QueryQuark::QueryQuark(const GQuark& q)
29   : quark_(q) 
30 {}
31
32 QueryQuark::QueryQuark(const ustring& s)
33 : quark_(g_quark_try_string(s.c_str()))
34 {}
35
36 QueryQuark::QueryQuark(const char* s)
37 : quark_(g_quark_try_string(s))
38 {}
39
40 QueryQuark& QueryQuark::operator=(const QueryQuark& q)
41 { quark_=q.quark_;
42   return *this;
43 }
44
45 QueryQuark::operator ustring() const
46 {
47   return ustring(g_quark_to_string(quark_));
48 }
49
50
51 Quark::Quark(const ustring& s)
52 : QueryQuark(g_quark_from_string(s.c_str()))
53 {}
54
55 Quark::Quark(const char* s)
56 : QueryQuark(g_quark_from_string(s))
57 {}
58
59 Quark::~Quark()
60 {}
61
62
63 GQuark quark_ = 0;
64 GQuark quark_cpp_wrapper_deleted_ = 0;
65
66 } /* namespace Glib */