Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: FTPUser.h
- Revision:
- 1:f5789613b955
- Parent:
- 0:61dbbee3f903
--- a/FTPUser.h Sun Jun 19 13:59:16 2011 +0000
+++ b/FTPUser.h Sun Jun 19 14:08:08 2011 +0000
@@ -6,17 +6,41 @@
using namespace std;
+/**
+ * An FTP User.
+ */
class FTPUser
{
public:
-
- FTPUser();
+
+ /**
+ * Constructor.
+ * @param username Username.
+ * @param password Password.
+ */
FTPUser(char* username, char* password);
+ FTPUser();
+ /**
+ * Sets the username.
+ * @param username Username.
+ */
void setUsername(const string& username) { m_username = username; }
+
+ /**
+ * Sets the password.
+ * @param username Password.
+ */
void setPassword(const string& password) { m_password = password; }
+ /**
+ * Get the username.
+ */
string& getUsername() { return m_username; }
+
+ /**
+ * Get the password.
+ */
string& getPassword() { return m_password; }
private: