WWW-Quvi-Defaults.t: Rename objects
[www-quvi.git] / Options.cxx
blobcf5c2742586473d0e297c68ba95eca37b72f3c75
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 Options::Options()
25 : verbose_libcurl(false),
26 format("default"),
27 verify(true),
28 resolve(true),
29 category(QUVIPROTO_HTTP)
33 Options::Options(const Options& o)
34 : verbose_libcurl(false),
35 format("default"),
36 verify(true),
37 resolve(true),
38 category(QUVIPROTO_HTTP)
40 _swap (o);
43 Options&
44 Options::operator=(const Options& o)
46 if (this != &o) _swap (o);
47 return *this;
50 Options::~Options()
54 void Options::_swap(const Options& o)
56 verbose_libcurl = o.verbose_libcurl;
57 user_agent = o.user_agent;
58 http_proxy = o.http_proxy;
59 format = o.format;
60 verify = o.verify;
61 resolve = o.resolve;
62 category = o.category;
65 // vim: set ts=2 sw=2 tw=72 expandtab: