mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature #462: url support
- added uri class for proper uri and path handling
This commit is contained in:
parent
b041e54be6
commit
042d7b40de
17 changed files with 505 additions and 343 deletions
|
@ -29,28 +29,23 @@
|
|||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "Uri.h"
|
||||
|
||||
class Transport {
|
||||
public:
|
||||
Transport (const std::string&, const std::string&, const std::string&, const std::string&);
|
||||
Transport (const std::string&);
|
||||
Transport (const Uri&);
|
||||
~Transport ();
|
||||
|
||||
static Transport* getTransport(const std::string&);
|
||||
static Transport* getTransport(const Uri&);
|
||||
|
||||
void parseUri (std::string);
|
||||
virtual void send (const std::string&) = 0;
|
||||
virtual void recv (std::string) = 0;
|
||||
|
||||
protected:
|
||||
std::string executable;
|
||||
std::string protocol;
|
||||
std::vector<std::string> arguments;
|
||||
|
||||
std::string host;
|
||||
std::string path;
|
||||
std::string port;
|
||||
std::string user;
|
||||
Uri uri;
|
||||
|
||||
int execute();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue