~saviq/unity-notifications/fix-version

« back to all changes in this revision

Viewing changes to src/Notification.cpp

Notifications are now owned by the client that opened them
Approved by: Charles Kerr

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    ActionModel* actionsModel;
40
40
    QVariantMap hints;
41
41
    int displayTime;
 
42
    QString clientId;
42
43
};
43
44
 
44
45
/*
205
206
    }
206
207
}
207
208
 
 
209
QString Notification::getClientId() const {
 
210
    return p->clientId;
 
211
}
 
212
 
 
213
void Notification::setClientId(const QString& clientId) {
 
214
    p->clientId = clientId;
 
215
}
 
216
 
208
217
void Notification::detachFromServer() {
209
218
    /*
210
219
     * FIXME. This function should not exist. In fact