Cupt
cupt
download
methodfactory.hpp
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010 by Eugene V. Lyubimkin *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License *
6
* (version 3 or above) as published by the Free Software Foundation. *
7
* *
8
* This program is distributed in the hope that it will be useful, *
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11
* GNU General Public License for more details. *
12
* *
13
* You should have received a copy of the GNU GPL *
14
* along with this program; if not, write to the *
15
* Free Software Foundation, Inc., *
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17
**************************************************************************/
18
#ifndef CUPT_DOWNLOAD_METHODFACTORY_SEEN
19
#define CUPT_DOWNLOAD_METHODFACTORY_SEEN
20
22
23
#include <cupt/fwd.hpp>
24
#include <
cupt/common.hpp
>
25
26
namespace
cupt {
27
28
namespace
internal {
29
30
class
MethodFactoryImpl;
31
32
}
33
34
namespace
download {
35
37
class
CUPT_API
MethodFactory
38
{
39
internal::MethodFactoryImpl* __impl;
40
MethodFactory
(
const
MethodFactory
&);
41
MethodFactory
& operator=(
const
MethodFactory
);
42
public
:
44
47
MethodFactory
(
const
Config
& config);
49
~
MethodFactory
();
51
54
Method
* getDownloadMethodForUri(
const
Uri
& uri)
const
;
55
};
56
57
}
58
}
59
60
#endif
61
common.hpp
cupt::download::Method
base class of download methods
Definition:
method.hpp:32
cupt::download::Uri
uniform resource indentifier, "download path"
Definition:
uri.hpp:37
cupt::download::MethodFactory
class to get a download method for URIs
Definition:
methodfactory.hpp:37
cupt::Config
stores library's configuration variables
Definition:
config.hpp:34
Generated by
1.8.17