aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-08-23 08:32:42 -0400
committerDave Reisner <dreisner@archlinux.org>2013-08-23 08:32:42 -0400
commit4204a29a0678d2384e4b88d4dc185b2da2e9bedf (patch)
treee7d5f5a64903798823b3e0975699028d336bf9d4
parent11b85e55db3f6ed29a040b53041a4aa9cf1a10df (diff)
downloadmirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.tar.gz
mirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.tar.bz2
mirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.zip
mark methods as const
-rw-r--r--notify.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/notify.h b/notify.h
index 69e8730..a2ddbc0 100644
--- a/notify.h
+++ b/notify.h
@@ -17,7 +17,7 @@ class Notifier {
public:
virtual ~Notifier() {}
- virtual void Notify(enum NotificationType type, long value, bool mute) = 0;
+ virtual void Notify(enum NotificationType type, long value, bool mute) const = 0;
protected:
bool initialized_;
@@ -26,14 +26,14 @@ class Notifier {
class NullNotifier : public Notifier {
public:
virtual ~NullNotifier() {}
- virtual void Notify(enum NotificationType, long, bool) {}
+ virtual void Notify(enum NotificationType, long, bool) const {}
};
class CommandLineNotifier : public Notifier {
public:
virtual ~CommandLineNotifier() {}
- virtual void Notify(enum NotificationType type, long value, bool) {
+ virtual void Notify(enum NotificationType type, long value, bool) const {
switch (type) {
case NOTIFY_VOLUME:
case NOTIFY_BALANCE:
@@ -56,7 +56,7 @@ class LibnotifyNotifier : public Notifier {
notify_uninit();
}
- virtual void Notify(enum NotificationType type, long value, bool mute) {
+ virtual void Notify(enum NotificationType type, long value, bool mute) const {
switch (type) {
case NOTIFY_BALANCE:
break;
@@ -69,7 +69,7 @@ class LibnotifyNotifier : public Notifier {
}
private:
- void volchange(long vol, bool mute) {
+ void volchange(long vol, bool mute) const {
const char* icon = "notification-audio-volume-muted";
if (!mute) {