#include <MediaCurl.h>
Inheritance diagram for MediaCurl:

Public Member Functions | |
| MediaCurl (const Url &url_r, const Pathname &attach_point_hint_r) | |
| virtual | ~MediaCurl () |
Static Public Member Functions | |
| static void | setCookieFile (const Pathname &) |
| static void | setCallbacks (Callbacks *c) |
Protected Member Functions | |
| virtual PMError | disconnectFrom () |
| virtual PMError | getFileCopy (const Pathname &srcFilename, const Pathname &targetFilename) const |
Static Protected Member Functions | |
| static int | progressCallback (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) |
Protected Attributes | |
| MEDIA_HANDLER_API | |
Private Attributes | |
| CURL * | _curl |
| char | _curlError [CURL_ERROR_SIZE] |
| std::string | _userpwd |
| std::string | _proxy |
| std::string | _proxyuserpwd |
| std::string | _currentCookieFile |
| bool | _connected |
Static Private Attributes | |
| static Pathname | _cookieFile = "/var/lib/YaST2/cookies" |
| static Callbacks * | _callbacks = 0 |
| static bool | _globalInit = false |
Classes | |
| class | Callbacks |
|
||||||||||||
|
|
|
|
|
|
|
Call concrete handler to disconnect media. Asserted that media is attached. This is useful for media which e.g. holds open a connection to a server like FTP. After calling disconnect() the media object still is valid and files are present. After calling disconnect() it's not possible to call provideFile() or provideDir() anymore. Reimplemented from MediaHandler. |
|
||||||||||||
|
Call concrete handler to provide a file under a different place in the file system (usually not under attach point) as a copy. Media must be attached before by callee. Default implementation provided that calls getFile(srcFilename) and copies the result around. Reimplemented from MediaHandler. |
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4