/
mms_transfer_list.h
98 lines (85 loc) · 3.18 KB
/
mms_transfer_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* Copyright (C) 2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef JOLLA_MMS_TRANSFER_LIST_H
#define JOLLA_MMS_TRANSFER_LIST_H
#include "mms_message.h"
/* Instance */
struct mms_transfer_list {
GObject object;
};
/* Class */
typedef struct mms_transfer_list_class {
GObjectClass parent;
void (*fn_transfer_started)(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type); /* Transfer type */
void (*fn_transfer_finished)(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type); /* Transfer type */
void (*fn_send_progress)(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint bytes_sent, /* Bytes sent so far */
guint bytes_total); /* Total bytes to send */
void (*fn_receive_progress)(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint bytes_received, /* Bytes received so far */
guint bytes_total); /* Total bytes to receive*/
} MMSTransferListClass;
GType mms_transfer_list_get_type(void);
#define MMS_TYPE_TRANSFER_LIST (mms_transfer_list_get_type())
MMSTransferList*
mms_transfer_list_ref(
MMSTransferList* list);
void
mms_transfer_list_unref(
MMSTransferList* list);
void
mms_transfer_list_transfer_started(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type); /* Transfer type */
void
mms_transfer_list_transfer_finished(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type); /* Transfer type */
void
mms_transfer_list_transfer_send_progress(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint bytes_sent, /* Bytes sent so far */
guint bytes_total); /* Total bytes to send */
void
mms_transfer_list_transfer_receive_progress(
MMSTransferList* list, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint bytes_received, /* Bytes received so far */
guint bytes_total); /* Total bytes to receive*/
#endif /* JOLLA_MMS_TRANSFER_LIST_H */
/*
* Local Variables:
* mode: C
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/