aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/net/pop3/POP3Command.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /vmime/net/pop3/POP3Command.hpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'vmime/net/pop3/POP3Command.hpp')
-rw-r--r--vmime/net/pop3/POP3Command.hpp40
1 files changed, 19 insertions, 21 deletions
diff --git a/vmime/net/pop3/POP3Command.hpp b/vmime/net/pop3/POP3Command.hpp
index ef2b3ac4..cc3c4fd5 100644
--- a/vmime/net/pop3/POP3Command.hpp
+++ b/vmime/net/pop3/POP3Command.hpp
@@ -52,40 +52,38 @@ class POP3Connection;
*/
class VMIME_EXPORT POP3Command : public object
{
- friend class vmime::creator;
-
public:
- static ref <POP3Command> CAPA();
- static ref <POP3Command> NOOP();
- static ref <POP3Command> AUTH(const string& mechName);
- static ref <POP3Command> STLS();
- static ref <POP3Command> APOP(const string& username, const string& digest);
- static ref <POP3Command> USER(const string& username);
- static ref <POP3Command> PASS(const string& password);
- static ref <POP3Command> STAT();
- static ref <POP3Command> LIST();
- static ref <POP3Command> LIST(const unsigned long msg);
- static ref <POP3Command> UIDL();
- static ref <POP3Command> UIDL(const unsigned long msg);
- static ref <POP3Command> DELE(const unsigned long msg);
- static ref <POP3Command> RETR(const unsigned long msg);
- static ref <POP3Command> TOP(const unsigned long msg, const unsigned long lines);
- static ref <POP3Command> RSET();
- static ref <POP3Command> QUIT();
+ static shared_ptr <POP3Command> CAPA();
+ static shared_ptr <POP3Command> NOOP();
+ static shared_ptr <POP3Command> AUTH(const string& mechName);
+ static shared_ptr <POP3Command> STLS();
+ static shared_ptr <POP3Command> APOP(const string& username, const string& digest);
+ static shared_ptr <POP3Command> USER(const string& username);
+ static shared_ptr <POP3Command> PASS(const string& password);
+ static shared_ptr <POP3Command> STAT();
+ static shared_ptr <POP3Command> LIST();
+ static shared_ptr <POP3Command> LIST(const unsigned long msg);
+ static shared_ptr <POP3Command> UIDL();
+ static shared_ptr <POP3Command> UIDL(const unsigned long msg);
+ static shared_ptr <POP3Command> DELE(const unsigned long msg);
+ static shared_ptr <POP3Command> RETR(const unsigned long msg);
+ static shared_ptr <POP3Command> TOP(const unsigned long msg, const unsigned long lines);
+ static shared_ptr <POP3Command> RSET();
+ static shared_ptr <POP3Command> QUIT();
/** Creates a new POP3 command with the specified text.
*
* @param text command text
* @return a new POP3Command object
*/
- static ref <POP3Command> createCommand(const string& text);
+ static shared_ptr <POP3Command> createCommand(const string& text);
/** Sends this command over the specified connection.
*
* @param conn connection onto which the command will be sent
*/
- virtual void send(ref <POP3Connection> conn);
+ virtual void send(shared_ptr <POP3Connection> conn);
/** Returns the full text of the command, including command name
* and parameters (if any).