aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppPresence.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-12-13 08:33:54 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-12-13 08:33:54 +0000
commita87ddb0a7ffb76d83548eac1f4a45eac11de1335 (patch)
tree734d4fc29a60242226fae0851fc01ec19cd24dc8 /src/QXmppPresence.h
parentb3115a90b058d05b2580f0f34b402c94e605fc92 (diff)
downloadqxmpp-a87ddb0a7ffb76d83548eac1f4a45eac11de1335.tar.gz
use better enums for VCardUpdate types
Diffstat (limited to 'src/QXmppPresence.h')
-rw-r--r--src/QXmppPresence.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/QXmppPresence.h b/src/QXmppPresence.h
index dddac9cb..6dfef6d8 100644
--- a/src/QXmppPresence.h
+++ b/src/QXmppPresence.h
@@ -49,12 +49,11 @@ public:
// XEP-0153: vCard-Based Avatars
enum VCardUpdateType
{
- // TODO fix the enum names PhotoNotAdvertized is confusing
- // All of these should start with VCardUpdate
VCardUpdateNone = 0, ///< Protocol is not supported
- PhotoNotAdvertized, ///< User is not using any image
- PhotoAdvertised, ///< User is advertising an image
- PhotoNotReady ///< User is not ready to advertise an image
+ VCardUpdateNoPhoto, ///< User is not using any image
+ VCardUpdateValidPhoto, ///< User is advertising an image
+ VCardUpdateNotReady ///< User is not ready to advertise an image
+
/// \note This enables recipients to distinguish between the absence of an image
/// (empty photo element) and mere support for the protocol (empty update child).
};