9d0c59b48e4ec0f9792ab6354879199dade9b222
[profile/tv/apps/native/filebrowser.git] / src / views / Dummy / DummyContent.cpp
1 #include <Elementary.h>\r
2 #include "dbg.h"\r
3 #include <AppCommon.h>\r
4 #include "DummyContent.h"\r
5 \r
6 \r
7 #define TOTAL_REL_CONTENTS 10
8
9
10 /* Dummy content for testing. Actuals should come from app store */
11 struct CDummyContent::SRelativeContent rltv_ctnt_list[] = {
12         {
13                 "Rel Content 1",
14                 "",
15                 "CONTENT1"
16         },
17         {
18                 "Rel Content 2",
19                 "",
20                 "CONTENT2"
21         },
22         {
23                 "Rel Content 3",
24                 "",
25                 "CONTENT3"
26         },
27         {
28                 "Rel Content 4",
29                 "",
30                 "CONTENT4"
31         },
32         {
33                 "Rel Content 5",
34                 "",
35                 "CONTENT5"
36         },
37         {
38                 "Rel Content 6",
39                 "",
40                 "CONTENT6"
41         },
42         {
43                 "Rel Content 7",
44                 "",
45                 "CONTENT7"
46         },
47         {
48                 "Rel Content 8",
49                 "",
50                 "CONTENT8"
51         },
52         {
53                 "Rel Content 9",
54                 "",
55                 "CONTENT9"
56         },
57         {
58                 "Rel Content 10",
59                 "",
60                 "CONTENT10"
61         }
62 };
63
64
65 Eina_List *CDummyContent::ListLinkApp(int type)
66 {
67         /*Dummy function. Actual should come from app store*/
68         Eina_List *list = NULL;
69         int i;
70
71         for (i = 0; i < 2; i++)
72                 list = eina_list_append(list, &rltv_ctnt_list[i]);
73
74         return list;
75 }
76
77
78 Eina_List *CDummyContent::ListRelative(int type)
79 {
80         /*Dummy function. Actual should come from app store*/
81         Eina_List *list = NULL;
82         int i;
83
84         for (i = 0; i < TOTAL_REL_CONTENTS; i++)
85                 list = eina_list_append(list, &rltv_ctnt_list[i]);
86
87         return list;
88 }