summaryrefslogtreecommitdiff
path: root/qrtclient
diff options
context:
space:
mode:
Diffstat (limited to 'qrtclient')
-rw-r--r--qrtclient/client.hxx12
-rw-r--r--qrtclient/ticket.hxx4
-rw-r--r--qrtclient/user.hxx24
3 files changed, 20 insertions, 20 deletions
diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx
index 452dc9d..d92d9e8 100644
--- a/qrtclient/client.hxx
+++ b/qrtclient/client.hxx
@@ -4,8 +4,8 @@
#include <QObject>
#include <rtclient/user.h>
-struct rt_user;
-struct rt_ticketlist;
+struct rtclient_user;
+struct rtclient_ticketlist;
namespace RTClient {
@@ -39,15 +39,15 @@ namespace RTClient {
, QString const& comments = nullptr
, QString const& signature = nullptr
, QString const& gecos = nullptr
- , enum rt_lang lang = RT_LANG_NONE
- , enum rt_timezone timeZone = RT_TIMEZONE_NONE
+ , rtclient_lang lang = RTCLIENT_LANG_NONE
+ , rtclient_timezone timeZone = RTCLIENT_TIMEZONE_NONE
, bool disabled = false
, bool privileged = false);
void search(QString const& owner);
signals:
- void logged(struct rt_user* user);
- void foundTickets(struct rt_ticketlist* list);
+ void logged(rtclient_user* user);
+ void foundTickets(rtclient_ticketlist* list);
};
}
diff --git a/qrtclient/ticket.hxx b/qrtclient/ticket.hxx
index 1e3d1bd..9cf66a3 100644
--- a/qrtclient/ticket.hxx
+++ b/qrtclient/ticket.hxx
@@ -3,7 +3,7 @@
#include <QAbstractListModel>
-struct rt_ticketlist;
+struct rtclient_ticketlist;
namespace RTClient {
@@ -43,7 +43,7 @@ namespace RTClient {
void rowCountChanged();
private slots:
- void addTickets(struct rt_ticketlist* ticketList);
+ void addTickets(rtclient_ticketlist* ticketList);
private:
QList<Ticket> tickets;
diff --git a/qrtclient/user.hxx b/qrtclient/user.hxx
index 8300c19..8b8f911 100644
--- a/qrtclient/user.hxx
+++ b/qrtclient/user.hxx
@@ -4,7 +4,7 @@
#include <QObject>
#include <rtclient/user.h>
-struct rt_user;
+struct rtclient_user;
namespace RTClient {
@@ -32,8 +32,8 @@ namespace RTClient {
Q_PROPERTY(QString comments READ comments WRITE setComments NOTIFY commentsChanged)
Q_PROPERTY(QString signature READ signature WRITE setSignature NOTIFY signatureChanged)
Q_PROPERTY(QString gecos READ gecos WRITE setGecos NOTIFY gecosChanged)
- Q_PROPERTY(rt_lang lang READ lang WRITE setLang NOTIFY langChanged)
- Q_PROPERTY(rt_timezone timeZone READ timeZone WRITE setTimeZone NOTIFY timeZoneChanged)
+ Q_PROPERTY(rtclient_lang lang READ lang WRITE setLang NOTIFY langChanged)
+ Q_PROPERTY(rtclient_timezone timeZone READ timeZone WRITE setTimeZone NOTIFY timeZoneChanged)
Q_PROPERTY(bool privileged READ privileged WRITE setPrivileged NOTIFY privilegedChanged)
Q_PROPERTY(bool disabled READ disabled WRITE setDisabled NOTIFY disabledChanged)
@@ -61,8 +61,8 @@ namespace RTClient {
, m_comments{""}
, m_signature{""}
, m_gecos{""}
- , m_lang{RT_LANG_NONE}
- , m_timeZone{RT_TIMEZONE_NONE}
+ , m_lang{RTCLIENT_LANG_NONE}
+ , m_timeZone{RTCLIENT_TIMEZONE_NONE}
, m_privileged{false}
, m_disabled{true}
{}
@@ -89,8 +89,8 @@ namespace RTClient {
QString const& comments() const { return m_comments; }
QString const& signature() const { return m_signature; }
QString const& gecos() const { return m_gecos; }
- rt_lang lang() const { return m_lang; }
- rt_timezone timeZone() const { return m_timeZone; }
+ rtclient_lang lang() const { return m_lang; }
+ rtclient_timezone timeZone() const { return m_timeZone; }
bool privileged() const { return m_privileged; }
bool disabled() const { return m_disabled; }
@@ -115,8 +115,8 @@ namespace RTClient {
void setComments(QString const& comments);
void setSignature(QString const& signature);
void setGecos(QString const& gecos);
- void setLang(rt_lang lang);
- void setTimeZone(rt_timezone timeZone);
+ void setLang(rtclient_lang lang);
+ void setTimeZone(rtclient_timezone timeZone);
void setPrivileged(bool privileged);
void setDisabled(bool disabled);
@@ -148,7 +148,7 @@ namespace RTClient {
void disabledChanged();
private slots:
- void update(rt_user* user);
+ void update(rtclient_user* user);
private:
QString m_id;
@@ -172,8 +172,8 @@ namespace RTClient {
QString m_comments;
QString m_signature;
QString m_gecos;
- rt_lang m_lang;
- rt_timezone m_timeZone;
+ rtclient_lang m_lang;
+ rtclient_timezone m_timeZone;
bool m_privileged;
bool m_disabled;
};