-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtfsdatatypes.h
98 lines (75 loc) · 1.61 KB
/
tfsdatatypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef TFSDATATYPES_H
#define TFSDATATYPES_H
#include <QObject>
namespace Tfs {
namespace Internal {
class TfsWorkFolder {
public:
TfsWorkFolder();
virtual ~TfsWorkFolder();
QString m_serverItem;
QString m_localItem;
QString m_type;
QString m_depth;
};
class TfsWorkspace: public QObject {
Q_OBJECT
QString m_name;
QString m_owner;
QString m_computer;
QString m_comment;
QString m_server;
QList<TfsWorkFolder *> m_workfolders;
public:
TfsWorkspace(TfsWorkspace *workspace = 0);
const QList<TfsWorkFolder *> workfolders() const;
Q_PROPERTY(QString Name READ Name WRITE setName)
Q_PROPERTY(QString Owner READ Owner WRITE setOwner)
Q_PROPERTY(QString Computer READ Computer WRITE setComputer)
Q_PROPERTY(QString Comment READ Comment WRITE setComment)
Q_PROPERTY(QString Server READ Server WRITE setServer)
QString Name() const
{
return m_name;
}
QString Owner() const
{
return m_owner;
}
QString Computer() const
{
return m_computer;
}
QString Comment() const
{
return m_comment;
}
QString Server() const
{
return m_server;
}
public slots:
void setName(QString arg)
{
m_name = arg;
}
void setOwner(QString arg)
{
m_owner = arg;
}
void setComputer(QString arg)
{
m_computer = arg;
}
void setComment(QString arg)
{
m_comment = arg;
}
void setServer(QString arg)
{
m_server = arg;
}
};
} // namespace Internal
} // namespace Tfs
#endif // TFSDATATYPES_H