[Telepathy-commits] [telepathy-qt4/master] Future-proof the Channel::Readiness enum
Olli Salli
olli.salli at collabora.co.uk
Sat Sep 20 10:00:56 PDT 2008
---
TelepathyQt4/cli-channel.cpp | 1 +
TelepathyQt4/cli-channel.h | 8 +++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/cli-channel.cpp b/TelepathyQt4/cli-channel.cpp
index 7f192e2..7c4f344 100644
--- a/TelepathyQt4/cli-channel.cpp
+++ b/TelepathyQt4/cli-channel.cpp
@@ -146,6 +146,7 @@ struct Channel::Private
Q_ASSERT(newReadiness == ReadinessDead);
break;
case ReadinessDead:
+ default:
Q_ASSERT(false);
break;
}
diff --git a/TelepathyQt4/cli-channel.h b/TelepathyQt4/cli-channel.h
index 22e728a..1cc2773 100644
--- a/TelepathyQt4/cli-channel.h
+++ b/TelepathyQt4/cli-channel.h
@@ -87,7 +87,7 @@ public:
* The readiness can change to any other state depending on the result
* of the initial state query to the remote object.
*/
- ReadinessJustCreated,
+ ReadinessJustCreated = 0,
/**
* The remote object is alive and all introspection has been completed.
@@ -95,7 +95,7 @@ public:
*
* The readiness can change to ReadinessDead.
*/
- ReadinessFull,
+ ReadinessFull = 5,
/**
* The remote object has gone into a state where it can no longer be
@@ -103,7 +103,9 @@ public:
*
* No further readiness changes are possible.
*/
- ReadinessDead
+ ReadinessDead = 10,
+
+ _ReadinessInvalid = 0xffff
};
/**
--
1.5.6.5
More information about the Telepathy-commits
mailing list