2
* Copyright (C) 2010 Toni Gundogdu.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
9
* This program 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
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
25
#include <quvi/quvi.h>
35
typedef std::string url;
39
std::string version ();
40
std::string version_long ();
44
std::string support_to_s (const std::map<std::string,std::string>&);
53
options(const options&);
54
options& operator=(const options&);
57
void format (const std::string&);
59
void statusfunc (quvi_callback_status);
60
void writefunc (quvi_callback_write);
62
void _swap (const options&);
64
quvi_callback_status _statusfunc;
65
quvi_callback_write _writefunc;
76
query& operator=(const query&);
79
video parse (const url&, const options&) const;
80
std::map<std::string,std::string> support () const;
81
void* curlHandle () const;
97
link& operator=(const link&);
100
const std::string& content_type () const;
101
const std::string& suffix () const;
102
const std::string& url () const;
103
double length () const;
106
void _swap (const link&);
108
std::string _contentType;
117
friend std::ostream& operator<<(std::ostream&, const video&);
122
video& operator=(const video&);
125
const std::string& title () const;
126
const std::string& host () const;
127
const std::string& url () const;
128
const std::string& id () const;
129
const std::string& format () const;
130
long http_code () const;
133
void print (std::ostream&);
135
void _swap (const video&);
137
std::vector<link>::const_iterator _current_link;
138
std::vector<link> _links;
151
error (quvi_t, QUVIcode);
152
error (const error&);
153
error& operator=(const error&);
156
const std::string& what() const;
157
long response_code () const;
158
QUVIcode quvi_code () const;
160
void _swap (const error&);