projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* fixes NB#75548
[modest]
/
src
/
modest-mail-operation-queue.h
diff --git
a/src/modest-mail-operation-queue.h
b/src/modest-mail-operation-queue.h
index
7a0759e
..
7f45317
100644
(file)
--- a/
src/modest-mail-operation-queue.h
+++ b/
src/modest-mail-operation-queue.h
@@
-45,6
+45,11
@@
G_BEGIN_DECLS
#define MODEST_IS_MAIL_OPERATION_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_MAIL_OPERATION_QUEUE))
#define MODEST_MAIL_OPERATION_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_MAIL_OPERATION_QUEUE,ModestMailOperationQueueClass))
#define MODEST_IS_MAIL_OPERATION_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_MAIL_OPERATION_QUEUE))
#define MODEST_MAIL_OPERATION_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_MAIL_OPERATION_QUEUE,ModestMailOperationQueueClass))
+typedef enum _ModestMailOperationQueueNotification {
+ MODEST_MAIL_OPERATION_QUEUE_OPERATION_ADDED,
+ MODEST_MAIL_OPERATION_QUEUE_OPERATION_REMOVED
+} ModestMailOperationQueueNotification;
+
typedef struct _ModestMailOperationQueue ModestMailOperationQueue;
typedef struct _ModestMailOperationQueueClass ModestMailOperationQueueClass;
typedef struct _ModestMailOperationQueue ModestMailOperationQueue;
typedef struct _ModestMailOperationQueueClass ModestMailOperationQueueClass;
@@
-54,6
+59,13
@@
struct _ModestMailOperationQueue {
struct _ModestMailOperationQueueClass {
GObjectClass parent_class;
struct _ModestMailOperationQueueClass {
GObjectClass parent_class;
+
+ /* Signals */
+ void (*queue_changed) (ModestMailOperationQueue *self,
+ ModestMailOperation *mail_op,
+ ModestMailOperationQueueNotification type);
+
+ void (*queue_empty) (ModestMailOperationQueue *self);
};
/* member functions */
};
/* member functions */
@@
-83,6
+95,15
@@
void modest_mail_operation_queue_add (ModestMailOperationQueue *op_que
void modest_mail_operation_queue_remove (ModestMailOperationQueue *op_queue,
ModestMailOperation *mail_op);
/**
void modest_mail_operation_queue_remove (ModestMailOperationQueue *op_queue,
ModestMailOperation *mail_op);
/**
+ * modest_mail_operation_queue_num_elements:
+ * @op_queue: a #ModestMailOperationQueue
+ *
+ * Gets the numeber of elements stored in #ModestMailOperationQueue.
+ **/
+guint
+modest_mail_operation_queue_num_elements (ModestMailOperationQueue *self);
+
+/**
* modest_mail_operation_queue_cancel:
* @op_queue: a #ModestMailOperationQueue
* @mail_op: the #ModestMailOperation that will be canceled
* modest_mail_operation_queue_cancel:
* @op_queue: a #ModestMailOperationQueue
* @mail_op: the #ModestMailOperation that will be canceled