Skip to content

Commit

Permalink
Add vibration parameter to sendNotify()
Browse files Browse the repository at this point in the history
This is the complementary change to the asteroidsyncservice plugin that
matches the change in API to require a vibration parameter for
sendNotify requests.
  • Loading branch information
beroset authored and FlorentRevest committed May 12, 2022
1 parent db7f659 commit 33bb934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions asteroidsyncservice/watch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ void Watch::setVibration(QString v)
m_iface->call("SetVibration", v);
}

void Watch::sendNotify(unsigned int id, QString appName, QString icon, QString body, QString summary)
void Watch::sendNotify(unsigned int id, QString appName, QString icon, QString body, QString summary, QString vibration)
{
m_iface->call("SendNotify", id, appName, icon, body, summary);
m_iface->call("SendNotify", id, appName, icon, body, summary, vibration);
}

bool Watch::screenshotServiceReady()
Expand Down
2 changes: 1 addition & 1 deletion asteroidsyncservice/watch.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Watch : public QObject
Q_INVOKABLE void setTime(QDateTime t);
bool notificationServiceReady();
Q_INVOKABLE void setVibration(QString v);
Q_INVOKABLE void sendNotify(unsigned int id, QString appName, QString icon, QString body, QString summary);
Q_INVOKABLE void sendNotify(unsigned int id, QString appName, QString icon, QString body, QString summary, QString vibration);
bool weatherServiceReady();

public slots:
Expand Down

0 comments on commit 33bb934

Please sign in to comment.