~ubuntu-branches/ubuntu/raring/kdevplatform/raring

« back to all changes in this revision

Viewing changes to vcs/vcsevent.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-01-17 03:21:56 UTC
  • mfrom: (0.3.15)
  • Revision ID: package-import@ubuntu.com-20120117032156-toarhfq5ihtpvm2p
Tags: 1.2.81-0ubuntu1
* New upstream release
  - Refreshed kubuntu_01_appmenu_fix.diff
  - Bump SONAME for kdevplatform and libsublime
    + Add appropriate Breaks/Replaces
  - Refresh install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
public:
33
33
    QString location;
34
34
    QString sourceLocation;
35
 
    VcsRevision revision;
36
35
    VcsRevision sourceRevision;
37
36
    VcsItemEvent::Actions actions;
38
37
};
51
50
    : d(new VcsItemEventPrivate)
52
51
{
53
52
    d->actions = rhs.d->actions;
54
 
    d->revision = rhs.d->revision;
55
53
    d->sourceRevision = rhs.d->sourceRevision;
56
54
    d->sourceLocation = rhs.d->sourceLocation;
57
55
    d->location = rhs.d->location;
72
70
    return d->sourceRevision;
73
71
}
74
72
 
75
 
VcsRevision VcsItemEvent::revision() const
76
 
{
77
 
    return d->revision;
78
 
}
79
 
 
80
73
VcsItemEvent::Actions VcsItemEvent::actions() const
81
74
{
82
75
    return d->actions;
92
85
    d->sourceLocation = l;
93
86
}
94
87
 
95
 
void VcsItemEvent::setRevision( const KDevelop::VcsRevision& rev )
96
 
{
97
 
    d->revision = rev;
98
 
}
99
 
 
100
88
void VcsItemEvent::setRepositoryCopySourceRevision( const KDevelop::VcsRevision& rev )
101
89
{
102
90
    d->sourceRevision = rev;
112
100
    if(this == &rhs)
113
101
        return *this;
114
102
    d->actions = rhs.d->actions;
115
 
    d->revision = rhs.d->revision;
116
103
    d->sourceRevision = rhs.d->sourceRevision;
117
104
    d->sourceLocation = rhs.d->sourceLocation;
118
105
    d->location = rhs.d->location;
126
113
    QString author;
127
114
    QString message;
128
115
    QDateTime date;
129
 
    VcsItemEvent::Actions actions;
130
116
    QList<VcsItemEvent> items;
131
117
};
132
118
 
147
133
    d->author = rhs.d->author;
148
134
    d->message = rhs.d->message;
149
135
    d->date = rhs.d->date;
150
 
    d->actions = rhs.d->actions;
151
136
    d->items = rhs.d->items;
152
137
}
153
138
 
171
156
    return d->message;
172
157
}
173
158
 
174
 
VcsItemEvent::Actions VcsEvent::actions() const
175
 
{
176
 
    return d->actions;
177
 
}
178
 
 
179
159
QList<VcsItemEvent> VcsEvent::items() const
180
160
{
181
161
    return d->items;
201
181
    d->message = m;
202
182
}
203
183
 
204
 
void VcsEvent::setActions( VcsItemEvent::Actions a )
205
 
{
206
 
    d->actions = a;
207
 
}
208
 
 
209
184
void VcsEvent::setItems( const QList<VcsItemEvent>& l )
210
185
{
211
186
    d->items = l;
212
187
}
213
188
 
 
189
void VcsEvent::addItem(const VcsItemEvent& item)
 
190
{
 
191
    d->items.append(item);
 
192
}
 
193
 
214
194
VcsEvent& VcsEvent::operator=( const VcsEvent& rhs)
215
195
{
216
196
    if(this == &rhs)
217
197
        return *this;
218
 
    d->actions = rhs.d->actions;
219
198
    d->revision = rhs.d->revision;
220
199
    d->message = rhs.d->message;
221
200
    d->items = rhs.d->items;