/
test_transfer_list.c
104 lines (92 loc) · 2.88 KB
/
test_transfer_list.c
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
99
100
101
102
103
104
/*
* 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.
*/
#include "test_transfer_list.h"
/* Logging */
#define GLOG_MODULE_NAME mms_transfer_list_log
#include <gutil_log.h>
GLOG_MODULE_DEFINE("mms-transfer-list-test");
/* Class definition */
typedef MMSTransferListClass MMSTransferListTestClass;
typedef struct mms_transfer_list_test {
MMSTransferList super;
} MMSTransferListTest;
G_DEFINE_TYPE(MMSTransferListTest, mms_transfer_list_test, \
MMS_TYPE_TRANSFER_LIST)
#define MMS_TYPE_TRANSFER_LIST_TEST (mms_transfer_list_test_get_type())
#define MMS_TRANSFER_LIST_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
MMS_TYPE_TRANSFER_LIST_TEST, MMSTransferListTest))
MMSTransferList*
mms_transfer_list_test_new()
{
return g_object_new(MMS_TYPE_TRANSFER_LIST_TEST, 0);
}
static
void
mms_transfer_list_test_transfer_started(
MMSTransferList* self, /* Instance */
char* id, /* Database record ID */
char* type) /* Transfer type */
{
}
static
void
mms_transfer_list_test_transfer_finished(
MMSTransferList* self, /* Instance */
char* id, /* Database record ID */
char* type) /* Transfer type */
{
}
static
void
mms_transfer_list_test_send_progress(
MMSTransferList* self, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint sent, /* Bytes sent so far */
guint total) /* Total bytes to send */
{
}
static
void
mms_transfer_list_test_receive_progress(
MMSTransferList* self, /* Instance */
char* id, /* Message ID */
char* type, /* Transfer type */
guint received, /* Bytes received so far */
guint total) /* Total bytes to receive*/
{
}
static
void
mms_transfer_list_test_init(
MMSTransferListTest* self)
{
}
static
void
mms_transfer_list_test_class_init(
MMSTransferListTestClass* klass)
{
klass->fn_transfer_started = mms_transfer_list_test_transfer_started;
klass->fn_transfer_finished = mms_transfer_list_test_transfer_finished;
klass->fn_send_progress = mms_transfer_list_test_send_progress;
klass->fn_receive_progress = mms_transfer_list_test_receive_progress;
}
/*
* Local Variables:
* mode: C
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/