Rename tests
[www-quvi.git] / Options.cxx
blob504dff9c15b34cffd25b908553e1bb0d5bccb846
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_HTTP), \
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&
47 Options::operator=(const Options& o)
49 if (this != &o) _swap (o);
50 return *this;
53 Options::~Options()
57 void Options::_swap(const Options& o)
59 verbose_libcurl = o.verbose_libcurl;
60 user_agent = o.user_agent;
61 http_proxy = o.http_proxy;
62 format = o.format;
63 verify = o.verify;
64 resolve = o.resolve;
65 category = o.category;
68 // vim: set ts=2 sw=2 tw=72 expandtab: