Move the PusherConditionKind enum to Vala

This commit is contained in:
Gergely Polonkai 2016-03-03 13:12:56 +01:00
parent 78b98b4a5c
commit e5d110d0f4
4 changed files with 10 additions and 61 deletions

View File

@ -50,14 +50,6 @@ namespace Matrix {
UNDERRIDE; UNDERRIDE;
} }
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PUSHER_CONDITION_KIND_")]
public enum PusherConditionKind {
EVENT_MATCH,
PROFILE_TAG,
CONTAINS_DISPLAY_NAME,
ROOM_MEMBER_COUNT;
}
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_ROOM_PRESET_")] [CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_ROOM_PRESET_")]
public enum RoomPreset { public enum RoomPreset {
NONE, NONE,

View File

@ -55,6 +55,16 @@ namespace Matrix {
FREE_FOR_CHAT; /// user is free for chat FREE_FOR_CHAT; /// user is free for chat
} }
/**
* Condition types for pushers.
*/
public enum PusherConditionKind {
EVENT_MATCH, /// glob pattern match on a field of the event. Requires a {{{key}}} and a {{{pattern}}} parameter
PROFILE_TAG, /// matches the profile tag of the device that the notification would be delivered to. Requires a {{{profile_tag}}} parameter
CONTAINS_DISPLAY_NAME, /// matches unencrypted messages where the content's body contains the owner's display name in that room.
ROOM_MEMBER_COUNT; /// matches the current number of members in the room. Requires an {{{is}}} parameter, which must be an integer, optionally prefixed by {{==}}}, {{{<}}}, {{{>}}}, {{{<=}}} or {{{>=}}}. If the prefix is omitted, it defaults to {{{==}}}
}
/** /**
* Resizing methods for matrix_api_media_thumbnail(). * Resizing methods for matrix_api_media_thumbnail().
*/ */

View File

@ -152,52 +152,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
* Pusher types. * Pusher types.
*/ */
/**
* MatrixPusherConditionKind:
* @MATRIX_PUSHER_CONDITION_KIND_EVENT_MATCH: glob pattern match on a
* field of the
* event. Requires a
* <code>key</code> and a
* <code>pattern</code>
* parameter
* @MATRIX_PUSHER_CONDITION_KIND_PROFILE_TAG: matches the profile tag
* of the device that the
* notification would be
* delivered to. Requires a
* <code>profile_tag</code>
* parameter
* @MATRIX_PUSHER_CONDITION_KIND_CONTAINS_DISPLAY_NAME: matches
* unencrypted
* messages where
* the content's
* body contains
* the owner's
* display name
* in that room.
* @MATRIX_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT: matches the
* current number of
* members in the
* room. Requires an
* <code>is</code>
* parameter, which
* must be an
* integer,
* optionally
* prefixed by
* <code>==</code>,
* <code>&lt;</code>,
* <code>&gt;</code>,
* <code>&lt;=</code>
* or
* <code>&gt;=</code>. If
* the prefix is
* omitted, it
* defaults to
* <code>==</code>
*
* Condition types for pushers.
*/
/** /**
* MatrixReceiptType: * MatrixReceiptType:
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read * @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read

View File

@ -97,13 +97,6 @@ typedef enum {
MATRIX_PUSHER_KIND_UNDERRIDE MATRIX_PUSHER_KIND_UNDERRIDE
} MatrixPusherKind; } MatrixPusherKind;
typedef enum {
MATRIX_PUSHER_CONDITION_KIND_EVENT_MATCH,
MATRIX_PUSHER_CONDITION_KIND_PROFILE_TAG,
MATRIX_PUSHER_CONDITION_KIND_CONTAINS_DISPLAY_NAME,
MATRIX_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT
} MatrixPusherConditionKind;
typedef struct _MatrixStateEvent MatrixStateEvent; typedef struct _MatrixStateEvent MatrixStateEvent;
GType matrix_state_event_get_type(void); GType matrix_state_event_get_type(void);