Inject $VERSION into swig generated pm
[www-quvi.git] / Options.cxx
blob8c433b07e8a02115b27be308de562d24c60fba2b
1 /* WWW::Quvi
2 * Copyright (C) 2010-2011 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #include <string>
22 #include "Quvi.h"
24 #define _init \
25 : user_agent(""), \
26 http_proxy(""), \
27 verbose_libcurl(0), \
28 format("default"), \
29 category(QUVIPROTO_ALL), \
30 resolve(1), \
31 verify(1)
33 Options::Options()
34 _init
38 Options::Options(const Options& o)
39 _init
41 _swap(o);
44 #undef _init
46 Options& Options::operator=(const Options& o)
48 if (this != &o) _swap(o);
49 return *this;
52 Options::~Options()
56 void Options::_swap(const Options& o)
58 verbose_libcurl = o.verbose_libcurl;
59 user_agent = o.user_agent;
60 http_proxy = o.http_proxy;
61 format = o.format;
62 verify = o.verify;
63 resolve = o.resolve;
64 category = o.category;
67 // vim: set ts=2 sw=2 tw=72 expandtab: