ClientHttpSession.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__HTTP__CLIENT_HTTP_SESSION_H
00024 #define PROTOCOLS__HTTP__CLIENT_HTTP_SESSION_H
00025
00026 #include "Imports.h"
00027
00028 namespace Protocols {
00029 namespace Http {
00030
00040 class File
00041 {
00042 CALITKO_MOCKABLE
00043
00044 public:
00045 virtual ~File() {}
00046 virtual bool write (const QByteArray &, bool flush = true) = 0;
00047 };
00048
00049 class ClientHttpSession
00050 {
00051 CALITKO_MOCKABLE
00052
00053 public:
00054 virtual ~ClientHttpSession() {};
00055 virtual void open () = 0;
00056 virtual void close() = 0;
00057 virtual void abort() = 0;
00058 virtual void get (const Uri &, File *outFile) = 0;
00059 };
00060
00061 }
00062 }
00063
00064 #endif // PROTOCOLS__HTTP__CLIENT_HTTP_SESSION_H