platform/core/appfw/tizen-theme-manager.git
3 years agoFix RequestBroker 08/236908/4
Sangyoon Jang [Tue, 23 Jun 2020 08:04:27 +0000 (17:04 +0900)]
Fix RequestBroker

Use non-static method, using lambda for c callback.

Change-Id: I91d5efc48fd9674e79e854752caabfc0d608bff0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix the constants of bundle key 77/236877/3
Sangyoon Jang [Tue, 23 Jun 2020 05:13:16 +0000 (14:13 +0900)]
Fix the constants of bundle key

We don't need to add command at bundle, because it is already passed by
dbus message.
Use constants as extern, instead of macro.

Change-Id: I7a4534af84c7ec244f7749c824b4c3599a1674f7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoImprove coverage for theme_info 99/236899/2
Inkyun Kil [Tue, 23 Jun 2020 07:31:55 +0000 (16:31 +0900)]
Improve coverage for theme_info

Change-Id: Ice576c3ee77052af4a4b0e02751cd31e2becb797
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoAdd unit test for RequestBroker 97/235897/8 accepted/tizen/unified/20200618.130042 submit/tizen/20200618.082339
Ilho Kim [Wed, 10 Jun 2020 01:57:09 +0000 (10:57 +0900)]
Add unit test for RequestBroker

Change-Id: I75cbcf4d1571697519aa331b7581875f8092fb2a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoInclude theme_error.h at theme.h 72/236472/1
Sangyoon Jang [Wed, 17 Jun 2020 08:19:48 +0000 (17:19 +0900)]
Include theme_error.h at theme.h

Change-Id: Ib4bc53f14b2faa4da38dff3137483fbaa09a2cbc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix native API header 71/236471/1
Sangyoon Jang [Wed, 17 Jun 2020 08:13:25 +0000 (17:13 +0900)]
Fix native API header

Fix errors from native API header rule checker.

Change-Id: I9a5dcc3d40b19932cc2379daa9e8ae0151417019
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoSeparate library for API 41/236341/6
Sangyoon Jang [Tue, 16 Jun 2020 09:36:51 +0000 (18:36 +0900)]
Separate library for API

A new lib file libcapi-appfw-tizen-theme.so is separated from
libtizen-theme.so.
Install header files for API.

Change-Id: Idc9846ea604dcbb8e7f74ae1e4aa0b4dd911f500
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoUnify the argument of dbus method caller and receiver 06/235706/7
Ilho Kim [Tue, 9 Jun 2020 05:23:02 +0000 (14:23 +0900)]
Unify the argument of dbus method caller and receiver

Change-Id: I073bdbe25b8f66eb3646535689fdc54de7e1df34
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd theme_loader_set_current API 28/235428/5
Junghyun Yeon [Thu, 4 Jun 2020 11:00:43 +0000 (20:00 +0900)]
Add theme_loader_set_current API

Change-Id: I1c8c8fdde27c41054bf4a27e4eaa1864f930b4be
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoRestart theme-provider when install rpm package 29/236429/2
Sangyoon Jang [Wed, 17 Jun 2020 05:07:58 +0000 (14:07 +0900)]
Restart theme-provider when install rpm package

Change-Id: Ia789236f131f8058b7fc8ed2e79d072fa1bd7a1b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix theme_loader_query_id 28/236428/2
Sangyoon Jang [Wed, 17 Jun 2020 05:07:08 +0000 (14:07 +0900)]
Fix theme_loader_query_id

Change-Id: Iff5b625e89fc51b7fb7284ceefca43cf4f676d6e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd GET_IDS request filter 27/236427/1
Sangyoon Jang [Wed, 17 Jun 2020 05:06:12 +0000 (14:06 +0900)]
Add GET_IDS request filter

Change-Id: I65e2db3338b94448f9a48887cd5bd0e66ce85cda
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd/Remove unit tests 27/235427/6
Junghyun Yeon [Thu, 4 Jun 2020 10:48:26 +0000 (19:48 +0900)]
Add/Remove unit tests

theme_ APIs and theme_loader_ APIs are wrapper of
ThemeInfo ThemeInfoLoader classes.
Making unit tests for all of these are unnecessary.

Change-Id: I5058287ff247df5af86fceb7b2ccb9d7482a4a84
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoRefactor theme plugin 08/236308/2
Sangyoon Jang [Tue, 16 Jun 2020 06:44:45 +0000 (15:44 +0900)]
Refactor theme plugin

Remove duplicated code.

Change-Id: I8c2dc9464f27d5adeda9aa6d3c28d3e8ed84b94e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoCheck the parsed theme is valid or not 93/236193/1
Sangyoon Jang [Mon, 15 Jun 2020 11:17:45 +0000 (20:17 +0900)]
Check the parsed theme is valid or not

Change-Id: I03b047f7abd1bd5fcf452bd6c106feb6f70faaa5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd ThemeInfo::IsValid() method 92/236192/1
Sangyoon Jang [Mon, 15 Jun 2020 11:17:04 +0000 (20:17 +0900)]
Add ThemeInfo::IsValid() method

Change-Id: I8ead841269506cc970cfc73224af856d0abdb2a2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix return type of ThemeParser::Commit() 90/236190/1
Sangyoon Jang [Mon, 15 Jun 2020 11:12:09 +0000 (20:12 +0900)]
Fix return type of ThemeParser::Commit()

Change-Id: Ic5a0f3969e53ed786a45855edfa42b10a230a077
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix systemd and DBus configuaration, fix bus name 21/236121/5
Sangyoon Jang [Mon, 15 Jun 2020 05:42:44 +0000 (14:42 +0900)]
Fix systemd and DBus configuaration, fix bus name

The systemd service file and dbus configuration will be installed by rpm
packaging. And the bus name is changed, following DBus naming convention.

Change-Id: I388adccd490d369782bc087623bb4b36c6a31def
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd uid attribute of ThemeInfo 58/235958/2
Sangyoon Jang [Thu, 11 Jun 2020 09:52:22 +0000 (18:52 +0900)]
Add uid attribute of ThemeInfo

Change-Id: I2cbc7fac05bcb6915f9fc629703530e85be86e3a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoReplace fff with gmock 97/234997/13
Sangyoon Jang [Mon, 1 Jun 2020 11:07:40 +0000 (20:07 +0900)]
Replace fff with gmock

Change-Id: I6b103e4235428e73de888e5c0a93a0f1abcbcb83
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd pkgid attribute of ThemeInfo 60/235860/2
Sangyoon Jang [Wed, 10 Jun 2020 09:59:18 +0000 (18:59 +0900)]
Add pkgid attribute of ThemeInfo

Change-Id: If3501476cd98f0fd8efafd3039479faf92825415
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoImplements OnRequest for theme_info_loader 83/234583/12
Inkyun Kil [Wed, 27 May 2020 07:02:50 +0000 (16:02 +0900)]
Implements OnRequest for theme_info_loader

Change-Id: I91ce70a80273bdb67ee1400df7e9ff1274d4b54e
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoUpdate ThemeInfo Class 78/235078/2
Inkyun Kil [Tue, 2 Jun 2020 05:09:56 +0000 (14:09 +0900)]
Update ThemeInfo Class

Change-Id: I783a0b8f554d1ca8db77d1f19bc64dd2fb523411
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
4 years agoFix coding style 54/235254/2
Sangyoon Jang [Wed, 3 Jun 2020 06:14:00 +0000 (15:14 +0900)]
Fix coding style

Change-Id: Iab844f1eabd63d8ccca897d48aa43c5ef72aacf2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix to daemon running always 52/235252/3
Sangyoon Jang [Wed, 3 Jun 2020 05:11:22 +0000 (14:11 +0900)]
Fix to daemon running always

Change-Id: Idd4189591571a4d2762835a7198835cf952165e8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix theme plugin for vitalness 55/235155/2
Junghyun Yeon [Tue, 2 Jun 2020 08:10:50 +0000 (17:10 +0900)]
Fix theme plugin for vitalness

theme plugin will return negative integer when it fails to do something.

Change-Id: Icb693b23b55c3f60dbe85e34de630bb01598a2de
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix plugin to identify theme json file 84/235184/3
Junghyun Yeon [Tue, 2 Jun 2020 11:07:14 +0000 (20:07 +0900)]
Fix plugin to identify theme json file

Manifest only contains filename. Absolute path will be
detemined during install so Plugin should construct absolute filepath itself.

Change-Id: I8227fdaaa5ab10dcd63ea5827f9591e9056a3bad
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix wrong error logs 82/235182/1
Sangyoon Jang [Tue, 2 Jun 2020 10:46:20 +0000 (19:46 +0900)]
Fix wrong error logs

Change-Id: I7c7f566ac3d9c43f932148f8aa7e1e32c8970e8b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix error when copying gcno files 81/235181/1
Sangyoon Jang [Tue, 2 Jun 2020 10:43:47 +0000 (19:43 +0900)]
Fix error when copying gcno files

Change-Id: I2f62434fd3807c20b06e55be5e593759a625b883
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd negative testcases for theme_ APIs 40/234940/1
Junghyun Yeon [Mon, 1 Jun 2020 02:36:35 +0000 (11:36 +0900)]
Add negative testcases for theme_ APIs

These testcases will check invalid parameter cases.

Change-Id: I0ee3b04601717f4f8786faa635412c4da5388e4d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix ThemeInfoBuilder 11/234711/2
Sangyoon Jang [Thu, 28 May 2020 06:32:57 +0000 (15:32 +0900)]
Fix ThemeInfoBuilder

Fix ThemeInfobuilder for extendability.
Put parsed data into a bundle, and build ThemeInfo using bundle.

Change-Id: Ia7055e6587640c5cc68087ce25937b18bad66602
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoMove unit_tests directoy to test directory 54/234754/1
Sangyoon Jang [Thu, 28 May 2020 07:39:10 +0000 (16:39 +0900)]
Move unit_tests directoy to test directory

Change-Id: I74a0110b76d1231ed1be7ed468da289fc5b66b64
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRemove INCLUDE_DIRECTORIES from CMakeLists.txt 53/234753/1
Sangyoon Jang [Thu, 28 May 2020 07:41:03 +0000 (16:41 +0900)]
Remove INCLUDE_DIRECTORIES from CMakeLists.txt

Use TARGET_INCLUDE_DIRECTORIES instead.

Change-Id: I757165ccfea1937266a8f573057c6e184204860b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix rpmlint warnings 85/234685/1
Sangyoon Jang [Thu, 28 May 2020 04:33:04 +0000 (13:33 +0900)]
Fix rpmlint warnings

Change-Id: Ie665bcea9a7a060db2dce0cf19e7ac63e9a37a9a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRemove unused sqlite functions 28/234628/1
Sangyoon Jang [Wed, 27 May 2020 11:38:56 +0000 (20:38 +0900)]
Remove unused sqlite functions

Change-Id: Id410f29556192f1f84dc0cf835e2dc39c9945176
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement GET_IDS command 24/234624/1
Sangyoon Jang [Wed, 27 May 2020 11:29:39 +0000 (20:29 +0900)]
Implement GET_IDS command

Change-Id: I4a5f5bc6f429f508ba40bcc93f948cb8120b3106
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix coding rule 40/234540/5
Junghyun Yeon [Wed, 27 May 2020 06:18:21 +0000 (15:18 +0900)]
Fix coding rule

Change-Id: I9b40e5f5c5e8c4e1086c8a2ae1d08c3fd9f27d0b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd unit tests for Theme getter APIs 38/234538/4
Junghyun Yeon [Wed, 27 May 2020 06:05:45 +0000 (15:05 +0900)]
Add unit tests for Theme getter APIs

Change-Id: Ibc35dd8d55279b621155e374ae95c29cc168890e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd parser-plugin info file for theme 95/234595/1
Sangyoon Jang [Wed, 27 May 2020 08:48:02 +0000 (17:48 +0900)]
Add parser-plugin info file for theme

Change-Id: I74e21678c2fb0a74078377cbbfc82795d57c8935
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix spec file to exclude debug files from non-debug pkg 81/234581/1
Sangyoon Jang [Wed, 27 May 2020 07:30:48 +0000 (16:30 +0900)]
Fix spec file to exclude debug files from non-debug pkg

Change-Id: I80515253bd5c5b45bac62eb30d555fc1a3fefa3e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRemove caps in service file 80/234580/1
Sangyoon Jang [Wed, 27 May 2020 06:43:25 +0000 (15:43 +0900)]
Remove caps in service file

Change-Id: Iaa18646e3c1e5cf6f36e52aa43cd561c7bab8cc8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd tests for RequestHandlers 48/234448/2
Sangyoon Jang [Tue, 26 May 2020 10:04:55 +0000 (19:04 +0900)]
Add tests for RequestHandlers

Change-Id: I1b6908796bf8061453120684564d711545dc1a46
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd description into CAPIs 23/234323/1
Junghyun Yeon [Mon, 25 May 2020 11:14:48 +0000 (20:14 +0900)]
Add description into CAPIs

Change-Id: I8ea6edec564a8a289c6c1120466c2509f65b0ae9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement theme manager service
Ilho Kim [Tue, 19 May 2020 06:12:10 +0000 (15:12 +0900)]
Implement theme manager service

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd EmitSignal for send event signal
Ilho Kim [Thu, 21 May 2020 02:06:35 +0000 (11:06 +0900)]
Add EmitSignal for send event signal

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd Command output argument to dbus method
Ilho Kim [Wed, 20 May 2020 07:27:42 +0000 (16:27 +0900)]
Add Command output argument to dbus method

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoUpdate Unittest
Inkyun Kil [Wed, 20 May 2020 08:19:58 +0000 (17:19 +0900)]
Update Unittest

- Adds 'FFF' for making fake function
- Adds unittest for theme_info_loader

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
4 years agoUse make_unique to initialize unique_ptr
Sangyoon Jang [Wed, 20 May 2020 07:29:06 +0000 (16:29 +0900)]
Use make_unique to initialize unique_ptr

Change-Id: I78a398b30b4d683935c8701f70004f57a0907052
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix build error
Ilho Kim [Wed, 20 May 2020 07:08:00 +0000 (16:08 +0900)]
Fix build error

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoSet CMAKE_VERBOSE_MAKEFILE=OFF as default
Sangyoon Jang [Wed, 20 May 2020 07:02:10 +0000 (16:02 +0900)]
Set CMAKE_VERBOSE_MAKEFILE=OFF as default

To set verbose makefile on, define "verbose_make" when gbs build.
 $ gbs build --define "verbose_make 1"

Change-Id: I64c19e2ae2d63ff375801fd44b4806eba8e3c908
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement SendDataAsync function
Ilho Kim [Wed, 20 May 2020 06:57:55 +0000 (15:57 +0900)]
Implement SendDataAsync function

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd Subscribe function to RequestBroker for client
Ilho Kim [Wed, 20 May 2020 04:24:20 +0000 (13:24 +0900)]
Add Subscribe function to RequestBroker for client

This function for listening the theme event signal

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd Request filter's is_oneway_ member variable
Ilho Kim [Tue, 19 May 2020 23:30:15 +0000 (08:30 +0900)]
Add Request filter's is_oneway_ member variable

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix dbus arguments
Ilho Kim [Tue, 19 May 2020 04:25:04 +0000 (13:25 +0900)]
Fix dbus arguments

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoImplements theme_info_loader
Inkyun Kil [Tue, 19 May 2020 02:28:43 +0000 (11:28 +0900)]
Implements theme_info_loader

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
4 years agoUse move semantic to initialize members
Junghoon Park [Tue, 19 May 2020 01:42:35 +0000 (10:42 +0900)]
Use move semantic to initialize members

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoUse c++14
Junghoon Park [Tue, 19 May 2020 01:09:08 +0000 (10:09 +0900)]
Use c++14

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoFix build error
Ilho Kim [Mon, 18 May 2020 07:39:59 +0000 (16:39 +0900)]
Fix build error

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoImplement Listen, SendData functions
Ilho Kim [Mon, 18 May 2020 06:48:54 +0000 (15:48 +0900)]
Implement Listen, SendData functions

These functions are for calling method in client
and receiving method call request and return result in server

Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix coding rule
Junghyun Yeon [Mon, 18 May 2020 06:06:17 +0000 (15:06 +0900)]
Fix coding rule

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement theme and theme_loader APIs
Junghyun Yeon [Mon, 18 May 2020 06:01:04 +0000 (15:01 +0900)]
Implement theme and theme_loader APIs

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement some APIs in theme.cc
Junghoon Park [Sat, 16 May 2020 06:06:45 +0000 (15:06 +0900)]
Implement some APIs in theme.cc

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoRefactor capi
Junghoon Park [Sat, 16 May 2020 05:49:48 +0000 (14:49 +0900)]
Refactor capi

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoFix capi implementation
Junghoon Park [Sat, 16 May 2020 05:32:51 +0000 (14:32 +0900)]
Fix capi implementation

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoImplement theme loader APIs
Junghyun Yeon [Fri, 15 May 2020 07:31:33 +0000 (16:31 +0900)]
Implement theme loader APIs

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoChange prototype of theme_loader_add_event
Junghyun Yeon [Thu, 14 May 2020 23:52:56 +0000 (08:52 +0900)]
Change prototype of theme_loader_add_event

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd OnTheneUnloaded at IThemeEvent
Junghyun Yeon [Thu, 14 May 2020 23:40:44 +0000 (08:40 +0900)]
Add OnTheneUnloaded at IThemeEvent

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix build error
Junghyun Yeon [Thu, 14 May 2020 01:42:25 +0000 (10:42 +0900)]
Fix build error

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement plugin parser and unit test
Sangyoon Jang [Wed, 13 May 2020 10:13:50 +0000 (19:13 +0900)]
Implement plugin parser and unit test

Change-Id: I9b6f6307a7e0a1705797ce8970cbd7e695236207
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd unit tests for ThemeInfoProxy
Sangyoon Jang [Wed, 13 May 2020 07:11:46 +0000 (16:11 +0900)]
Add unit tests for ThemeInfoProxy

Change-Id: Idd2c5501cdc71c0df3f7008cd01e766cf8eb844e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRegister package event listener as ThemeInfoProxy object
Sangyoon Jang [Wed, 13 May 2020 07:08:37 +0000 (16:08 +0900)]
Register package event listener as ThemeInfoProxy object

To register itself at constructor, the type of parameter of
DbManager::AddPackageEventListener() was changed.

Change-Id: I923a9e2cc0c2617422653cef93a4aefce4ab55d8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoEnsure theme_setting table has only one data
Sangyoon Jang [Tue, 12 May 2020 07:31:02 +0000 (16:31 +0900)]
Ensure theme_setting table has only one data

Current theme should be only one.

Change-Id: I90d97d86fdaf9ee821274c44bf54403dba10e5c0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix ThemeInfoProxy::LoadTheme()
Sangyoon Jang [Tue, 12 May 2020 07:30:05 +0000 (16:30 +0900)]
Fix ThemeInfoProxy::LoadTheme()

Return null when the requested theme does not exist.

Change-Id: Ic5a7f710992c21efe2c3bf0f5248868b6fa872ee
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix some coding style
Sangyoon Jang [Mon, 11 May 2020 10:44:38 +0000 (19:44 +0900)]
Fix some coding style

Change-Id: Ibd79148983c2687f36e4c5988fcd1423939718bc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd some unit tests
Sangyoon Jang [Mon, 11 May 2020 10:39:53 +0000 (19:39 +0900)]
Add some unit tests

Change-Id: Ic20ab807a3c1525f42c2e6af93d4aec7c3f9201e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoPrint error log at stderr to help debug during CTest
Sangyoon Jang [Mon, 11 May 2020 10:36:07 +0000 (19:36 +0900)]
Print error log at stderr to help debug during CTest

Change-Id: Ia03f6fef2c4e87eef1c8eb589df0c96745399759
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix SQLiteStatement
Sangyoon Jang [Mon, 11 May 2020 10:30:28 +0000 (19:30 +0900)]
Fix SQLiteStatement

- Use SQLITE_TRANSIENT when binding values
 Seems that SQLITE_STATIC needs explicit commit.
- Remove error logs at sqlite3_column_*
 Values can be null, and that is not an error.

Change-Id: Id53bd1936ec2a3cf00b339d2788dffd92f43f77a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement ThemeInfo::Serialize()
Sangyoon Jang [Mon, 11 May 2020 10:04:02 +0000 (19:04 +0900)]
Implement ThemeInfo::Serialize()

Change-Id: I76464c8256ba1fa8884d554f315a9016bdd839a4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix DbManager class
Sangyoon Jang [Mon, 11 May 2020 07:48:51 +0000 (16:48 +0900)]
Fix DbManager class

- Fix error of select query string.
- Make connection as shared_ptr to using shared_from_this().
- Initialize table at constructor.

Change-Id: I9024dca65f0d4984a1c53faaa07e03c8cc6a36f9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix setting db path of db manager
Sangyoon Jang [Fri, 8 May 2020 08:48:21 +0000 (17:48 +0900)]
Fix setting db path of db manager

The path will be passed by input. This change is for improve
extandability.

Change-Id: I760210775cd16460ac92a48c87afe0e9790a823d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoMake tizen-theme-provider as a library
Sangyoon Jang [Fri, 8 May 2020 08:46:22 +0000 (17:46 +0900)]
Make tizen-theme-provider as a library

Now there is a main source file separated from tizen-theme-provider.

Change-Id: I15645bbec355ad74b93043f0a70fe4a0d8c9a749
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement provider classes
Sangyoon Jang [Wed, 29 Apr 2020 07:45:29 +0000 (16:45 +0900)]
Implement provider classes

Change-Id: I86e625a65c40612e4c6573b9133c1ced52929ab9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd missing destructor of DbManager class
Sangyoon Jang [Wed, 22 Apr 2020 04:10:03 +0000 (13:10 +0900)]
Add missing destructor of DbManager class

Change-Id: Ib94b76e018759aff7078d47874420ab002c84af1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement ThemeInfoProxy
Sangyoon Jang [Wed, 22 Apr 2020 04:01:49 +0000 (13:01 +0900)]
Implement ThemeInfoProxy

Change-Id: I2ac0d7db38ae32ec289d5db34ed8fa1e1b63b329
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix serialize and deserialize of ThemeInfo
Sangyoon Jang [Wed, 22 Apr 2020 04:04:09 +0000 (13:04 +0900)]
Fix serialize and deserialize of ThemeInfo

Change-Id: I696af4f89729a6dfd5895a51335ae431bc8fed84
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoImplement DbManager class
Sangyoon Jang [Fri, 10 Apr 2020 04:15:45 +0000 (13:15 +0900)]
Implement DbManager class

Change-Id: I242dc4bb234ac894174d2a01217f9f3e8f303eac
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd theme loader
Junghyun Yeon [Wed, 22 Apr 2020 01:52:16 +0000 (10:52 +0900)]
Add theme loader

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd unit test for theme_info
Junghoon Park [Mon, 20 Apr 2020 03:41:17 +0000 (12:41 +0900)]
Add unit test for theme_info

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoFix build error
Sangyoon Jang [Tue, 14 Apr 2020 10:28:06 +0000 (19:28 +0900)]
Fix build error

Change-Id: I25a9df6629a0a773e2cc235e6bc8826ccbe876ae
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix coding style
Sangyoon Jang [Tue, 14 Apr 2020 10:07:19 +0000 (19:07 +0900)]
Fix coding style

Run tools/check-coding-style.

Change-Id: I3472cbe6acd7ddb04e68f6648a59b70e0a345b5a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd code style checker tool
Sangyoon Jang [Tue, 14 Apr 2020 10:06:22 +0000 (19:06 +0900)]
Add code style checker tool

Change-Id: I59767d2576a154a56bfd0a3c4f6e69ea357515d1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix some parameter types
Junghoon Park [Tue, 14 Apr 2020 07:45:20 +0000 (16:45 +0900)]
Fix some parameter types

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoAdd empty body
Junghoon Park [Tue, 14 Apr 2020 07:37:01 +0000 (16:37 +0900)]
Add empty body

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoFix namespaces
Junghoon Park [Tue, 14 Apr 2020 06:46:43 +0000 (15:46 +0900)]
Fix namespaces

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoFix namespaces
Junghoon Park [Tue, 14 Apr 2020 06:32:26 +0000 (15:32 +0900)]
Fix namespaces

Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoAdd skeleton codes for ThemeInfoLoader
Inkyun Kil [Tue, 14 Apr 2020 01:13:34 +0000 (10:13 +0900)]
Add skeleton codes for ThemeInfoLoader

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
4 years agoAdd ThemeInfoBuilder
Junghyun Yeon [Tue, 14 Apr 2020 00:31:16 +0000 (09:31 +0900)]
Add ThemeInfoBuilder

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd theme plugin parser
Junghyun Yeon [Mon, 13 Apr 2020 10:23:52 +0000 (19:23 +0900)]
Add theme plugin parser

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRefine directory structure, CMakeLists.txt for unit test
Sangyoon Jang [Fri, 10 Apr 2020 05:28:46 +0000 (14:28 +0900)]
Refine directory structure, CMakeLists.txt for unit test

Change-Id: I9bf17dc0b7d81f26ac43c49c03b65104ce39bd55
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd unittest
Inkyun Kil [Fri, 10 Apr 2020 01:09:20 +0000 (10:09 +0900)]
Add unittest

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>