Commit bf2ffee2 authored by Àlex Fiestas's avatar Àlex Fiestas
Browse files

Prepare owncloudWizard to hold ownCloud information

parent dab52cb9
......@@ -43,3 +43,33 @@ OwnCloudWizard::~OwnCloudWizard()
{
}
void OwnCloudWizard::setUsername(const QString& username)
{
m_username = username;
}
void OwnCloudWizard::setPassword(const QString& password)
{
m_password = password;
}
void OwnCloudWizard::setServer(const KUrl& server)
{
m_server = server;
}
const QString OwnCloudWizard::username() const
{
return m_username;
}
const QString OwnCloudWizard::password() const
{
return m_password;
}
const KUrl OwnCloudWizard::server() const
{
return m_server;
}
\ No newline at end of file
......@@ -21,12 +21,27 @@
#include <QtGui/QWizard>
#include <kurl.h>
class OwnCloudWizard : public QWizard
{
Q_OBJECT
public:
explicit OwnCloudWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0);
virtual ~OwnCloudWizard();
void setUsername(const QString &username);
void setPassword(const QString &password);
void setServer(const KUrl &server);
const QString username() const;
const QString password() const;
const KUrl server() const;
private:
QString m_username;
QString m_password;
KUrl m_server;
};
#endif //OWNCLOUD_H
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment