Yunjin Lee [Tue, 24 Jul 2018 05:51:58 +0000 (14:51 +0900)]
Remove title from wearable UI
- According to the platform UX changes, remove title from waearble UI.
Change-Id: I6b4e44d74072bdd2f796398e670251cb52ccff84
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Mon, 23 Jul 2018 07:02:42 +0000 (16:02 +0900)]
Update supported lanugage set
- Cover 82 languages in total
Change-Id: I9ca54ae1829fdec737d1b5f2fd08a0b7fc5a748a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Tue, 12 Jun 2018 02:39:14 +0000 (11:39 +0900)]
Add timer for home key event handling
- According to the UX guide, the target should show its homescreen
when home key event occurs. It means that, when the event comes,
the caller application should be getting lower and pasued with askuser
popup close. For that reason, askuser shares home key events with
other processes.
And the problem is, some application takes much longer time than askuser
for making themslves invisible. In this situation, user can't avoid
seeing some other layers of the caller app before seeing target
homescreen and it harms UX.
So, added 0.5s of timer for home key event handling.
Maybe there can be a much slower one and 0.5s can be not enough for them
but for now 0.5s seems proper when testing on the target with preloaded applications.
Change-Id: Ibb3b09c7e34acb5ec26c7bfdfbfb11d7862a6da2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Mon, 11 Jun 2018 07:45:14 +0000 (16:45 +0900)]
Add language changed callback for wearable profile
- In case of wearable, language can be changed by connected mobile
device while popup is showing hence add language changed callback for
it.
Change-Id: I1624314471f10bda9b6bceeaf11bad8b909dc51e
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
(cherry picked from commit
5eee3a9a2ec91133b8052188fe64529aba4516b8)
Yunjin Lee [Thu, 7 Jun 2018 06:35:10 +0000 (15:35 +0900)]
Handling H/W key event when key is released
- There is a function that is processed by a combination of several
inputs. For example, input combination of screen capture is swiping
the screen from side to side, keeping pressing the power key.
Askuser is processing key down event and it makes key
combination handling fail. To make keyrouter to handle input
combination, modify askuser to handle key release event instead of key
press event.
Change-Id: I184040594956abb59f7f921539d22cd5dcc1a41a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Piotr Sawicki [Thu, 16 Aug 2018 12:39:14 +0000 (14:39 +0200)]
Add missing license headers for a C# test application
Change-Id: I792b88793f7f11e6934fa05751e87ae3d238fb92
Piotr Sawicki [Tue, 5 Jun 2018 08:18:55 +0000 (10:18 +0200)]
Remove duplicated code in Sock implementation
Change-Id: Ibf2e6465216880831bfb4b0457858ec1ec584245
Yunjin Lee [Wed, 16 May 2018 04:18:30 +0000 (13:18 +0900)]
Release version 0.4.1
- Modify screen reader not to read role of contents
- Fix UX issues
- Fix scrollable range according to the UX
- Handling home key according to the profile
- Handling rotary event for wearable circle UI
Change-Id: Ide14e27faaa1cb03d278f684cd06609bebd5d5ae
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Mon, 4 Jun 2018 09:15:01 +0000 (18:15 +0900)]
Modify screen reader not to read role of contents
Change-Id: Ic6119e5ee90cc2e8b1a96aed6672ec6496990fcb
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Fri, 25 May 2018 08:30:20 +0000 (17:30 +0900)]
Fix UX issues
- Fix wearable popup title for screen reader support (read/highlight)
- Give list_effect style to scroller to get scroll end effect
Change-Id: Ia45b1a0c415510f64aaec5480718d57bc0807a3d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Tue, 15 May 2018 07:37:37 +0000 (16:37 +0900)]
Fix scrollable range according to the UX
Change-Id: I1d94c9f2b45f895d317cb5d63d7b2002b1d30347
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Wed, 9 May 2018 08:01:04 +0000 (17:01 +0900)]
Handling home key according to the profile
In wearable, use power key instead of home key
Change-Id: I68c271bff56563969aa2db0157450270172590ae
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Mon, 30 Apr 2018 08:17:02 +0000 (17:17 +0900)]
Handling rotary event for wearable circle UI
- To enable scrolling using wearable circle bazel, add scroller on
layout and make it scroll according to the rotary event direction.
Change-Id: Ic4dd17738a0f75f5126ec55204dcee9a7f9138f8
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Tomasz Swierczek [Fri, 20 Apr 2018 07:15:34 +0000 (09:15 +0200)]
Release version 0.4.0
* Removed unnecessary coregl dependency
* Fixed problem of UI hanging on elm_language_set()
* Removed unused agent code
* Minor fixes for UI layout & code
* Optimization of check API (using AUL data in client, using new privacy-checker API)
* Added caching of AppInfo/PkgInfo data in client
* Return ALLOW for non privacy privileges
* Fixes for identifying application id
This release changes numbering to differentiate older branches of code.
This branch will continue to use 0.4.X numbering while older versions
will contininue to use 0.3.X numbering (for bugfixes/maintenance).
Change-Id: Ia9d9fe97ddb286c6c6253110647ff12bd6a7351a
Tomasz Swierczek [Wed, 18 Apr 2018 08:17:40 +0000 (10:17 +0200)]
Optimize privilege-checker API usage
Use privilege_info_get_same_privacy_grouped_privileges() instead of
sequential calling:
* privilege_info_is_privacy
* privilege_info_get_privacy_by_privilege
* privilege_info_get_privilege_list_by_privacy
Change-Id: Ifc03361cab7b9457feaec8a3c99fbe832ee82b43
Tomasz Swierczek [Thu, 5 Apr 2018 08:44:40 +0000 (10:44 +0200)]
Add caching of App/Pkg data & use faster way to retrieve this data
In client side, this data needs to be retrieved only once for given client.
PkgMgr is checked only from askuser-notification daemon context, otherwise
AUL environment variables/AUL API is called to get data needed on client side.
This optimization should reduce API call time for ppm_check by ~60%
Change-Id: I5a9238113b062df551b73e3af7e52f6b13643c81
Zofia Grzelewska [Mon, 23 Apr 2018 14:43:33 +0000 (16:43 +0200)]
Handle exceptions in logic
Catch exceptions thrown when security-manager or efl
failes inside Logic class.
Change-Id: I0735f10e1f12e29dcf93da351890a43fdf68e4fc
Zofia Grzelewska [Fri, 20 Apr 2018 16:05:55 +0000 (18:05 +0200)]
Remove coregl dependency
Change-Id: I300ff54e8f4aefcd908f2fb53706e31d5eb39549
Tomasz Swierczek [Fri, 20 Apr 2018 12:46:20 +0000 (14:46 +0200)]
Fix UI: elm_language_set should be called after elm_init
Change-Id: I734c0657a348c9ad72a8188bc6f8d04f36cfb4bb
Tomasz Swierczek [Wed, 18 Apr 2018 08:58:22 +0000 (10:58 +0200)]
Fix return value check from privilege_db_manager_get_mapped_privilege_list
The API in its documentation returns PRIVILEGE_DB_MANAGER_ERR_NONE, not
PRVMGR_ERR_NONE
Change-Id: Ia8683f729747af2d75277ca2da8e7903189f9364
Zofia Grzelewska [Thu, 19 Apr 2018 13:23:00 +0000 (15:23 +0200)]
Removed unused files
Agent code is not used not built anymore. This commit deletes it.
Change-Id: I93d054707ced2622a9317a8e34620232a288e2a3
Tomasz Swierczek [Thu, 19 Apr 2018 07:01:35 +0000 (09:01 +0200)]
Fix includes in Po.cpp
This file uses logging, should explicitly include logging header.
Change-Id: I91182c2ed26e75592ee91316a4ff6b1181fa15ed
Zofia Grzelewska [Tue, 27 Feb 2018 15:27:14 +0000 (16:27 +0100)]
Return ALLOW for non privacy privileges
When application checks/requests permission for given privilege,
return ALLOW when this privilege is requested by application
in manifest, but isn't privacy for it.
Change-Id: Ia36478fce3b9737589c2c130b9247ee3e7a89143
Yunjin Lee [Wed, 4 Apr 2018 08:00:26 +0000 (17:00 +0900)]
Modify wearable layout
-Fixed that the text is displayed as shifted to the right side
Change-Id: I24d6a6cff8fc2447b3d1080aa643c28f4d92d546
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Zofia Grzelewska [Tue, 10 Apr 2018 12:20:29 +0000 (14:20 +0200)]
Fix identifying application id
Both identifyApp and getOwnAppId were incorrectly implemented
and return empty string for hybrid applications.
Change-Id: I80b214865df80cd56ebdcf416c1faeaeb74abb90
jin-gyu.kim [Wed, 21 Mar 2018 07:53:35 +0000 (16:53 +0900)]
Add text for screen reader to buttons.
There was no text for screen reader in buttons of wearable, because
those are implemented as picture.
But, screen reader should tell appropriate texts for each buttons.
So, add texts for screen reader using elementary API.
Change-Id: Id4f131f794007b72269410516578ffa888258422
Tomasz Swierczek [Fri, 9 Mar 2018 06:30:12 +0000 (07:30 +0100)]
Release 0.3.3
* Change of socket path to /run/user/<UID>
* Add timer to stop askuser-notification after being idle
* Let client create one connection per one request
Change-Id: I7a2b0853934881eba56eb615ef34faae5ea3d4dc
Tomasz Swierczek [Fri, 9 Mar 2018 06:18:26 +0000 (07:18 +0100)]
Change of socket path to /run/user/<UID>
/run/user is accessible to service daemons in Tizen platform.
This change is only for Tizen 5.0.
Change-Id: I32494b6e2c27dcf8dcbb7820debcd9341d505a9a
Zofia Grzelewska [Mon, 29 Jan 2018 17:37:40 +0000 (18:37 +0100)]
Add timer to stop askuser-notification after being idle
Timer is set for 1 seconds and if triggered and no event is
to process for askuser-notification, then whole service is shutdown.
Change-Id: I049e091494859d290232b6d10dc7f03a36442825
Piotr Sawicki [Wed, 31 Jan 2018 10:51:07 +0000 (11:51 +0100)]
Let client create one connection per one request
Change-Id: I220c399d125f3de70490855c3c4fe08a2958b3eb
Tomasz Swierczek [Mon, 26 Feb 2018 12:57:32 +0000 (13:57 +0100)]
Release version 0.3.2
Code cleanup & formatting fixes
Check if path isn't too long before copying to sock path
Return DENY when application has no policy for given privacy privilege
Update popup message according to the UX guide
Change-Id: I815884d1c29f56e5cd98cba1b653869a95270169
Zofia Grzelewska [Mon, 29 Jan 2018 17:32:02 +0000 (18:32 +0100)]
Code cleanup
* Move common code after branches
* Use alias
Change-Id: I7676c94c88b7fb3e1d206f937068b92138348896
Zofia Grzelewska [Wed, 21 Feb 2018 12:03:50 +0000 (13:03 +0100)]
Check if path isn't too long before copying to sock path
This fixes possible buffer overflow, when path is copied to sun_path
without size check.
Change-Id: Ib63d885d3eea3bc8441354d8143acba47276eb1b
Tomasz Swierczek [Fri, 23 Feb 2018 06:10:12 +0000 (06:10 +0000)]
Merge "Return DENY when application has no policy for given privacy privilege" into tizen
Zofia Grzelewska [Wed, 21 Feb 2018 13:26:34 +0000 (14:26 +0100)]
Fix missing spaces after keywords
Fix code style - missing spaces after 'switch','which'
and 'if' keywords.
Change-Id: I51449bdc574fa8f474974faeeb1f93d29b100c81
Zofia Grzelewska [Tue, 6 Feb 2018 09:01:04 +0000 (10:01 +0100)]
Return DENY when application has no policy for given privacy privilege
When application has no policy set in privacy bucket, return
DENY inside checkPermission. This will be also returned in case
of privileges declared in application manifests, because currently
askuser cannot differentiate these two cases.
Change-Id: I9a177bdd9cc2e107dff973c5328263f23c31a0a4
Yunjin Lee [Thu, 25 Jan 2018 06:50:47 +0000 (15:50 +0900)]
Update popup message according to the UX guide
Change-Id: I339af0848cdefd1ff5e4b08f93f1ea3f5e966612
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Dariusz Michaluk [Wed, 17 Jan 2018 20:26:28 +0000 (21:26 +0100)]
Release version 0.3.1
Change-Id: If40f2736a3f63a4b08f73c865b9a14d559430030
Zofia Grzelewska [Mon, 11 Dec 2017 12:16:51 +0000 (13:16 +0100)]
Fix changes file
Changes file wasn't updated with the last release.
Also fixed one missing entry in previous one.
Change-Id: If40239262335f0b55f477474255886de2fc6a718
Zofia Grzelewska [Mon, 4 Dec 2017 15:35:53 +0000 (16:35 +0100)]
Adjust to sm policy entries free function fix
New security-manager function signature changes parameter
type to proper policy_entry **.
Change-Id: I34d726b1c9cfdc3c8eafff9afe8993bf59a5246e
Zofia Grzelewska [Mon, 4 Dec 2017 15:35:07 +0000 (16:35 +0100)]
Remove notification dependency
Change-Id: I0f5d641320262b6817f4a325acee8520eeafc7ae
Zofia Grzelewska [Thu, 7 Dec 2017 09:31:47 +0000 (10:31 +0100)]
Release version 0.3.0
Add support for privileges mapping. Now one request
permission can trigger multiple privacy popups
connected with how given privilege maps to core privileges.
Add C# test application for manual PPM API tests.
Change-Id: I7e792a4c092800a6d736b589b2a87e3b6bab7b8d
Zofia Grzelewska [Thu, 30 Nov 2017 09:55:17 +0000 (10:55 +0100)]
Enhance logs
Change-Id: I2f92b9d1eae7c597fb1411b26f3be5393fb4c80c
Zofia Grzelewska [Tue, 28 Nov 2017 15:40:24 +0000 (16:40 +0100)]
Don't set policy for privileges not in application manifest
Policy is checked/set for those privacy privileges,
which had any policy in privacy bucket for given user
and application.
Change-Id: Ica8bf4a9b753418ab5517194e047b83343903686
Zofia Grzelewska [Tue, 28 Nov 2017 15:22:20 +0000 (16:22 +0100)]
Don't show popups to allowed priviacies
When one of privacies, to which privilege is mapped,
is already allowed, don't show popup for it. This may
lead to inconsistency - when user chooses deny once,
the policy is not set and user thinks that application
cannot use this privacy, but it is allowed.
Change-Id: Id3509c7b33e6f2e4bf47340e1a2e368946e96ca1
Zofia Abramowska [Thu, 16 Nov 2017 16:54:17 +0000 (17:54 +0100)]
Support privilege mapping to multiple privacies
Add different root types of application: EXTENDED and SKEL.
This is connected with new places, where application can put
its own files.
Change-Id: I9f3db1523d0121dc6d094713a992a71b490c1976
Yunjin Lee [Thu, 2 Nov 2017 11:44:12 +0000 (20:44 +0900)]
Fix UI issue : Set text after setting style
- Set text after setting object's style.
Otherwise, long text of wearable UI is displayed in 1 line
and it cuts head and tail of the string hence
the user could not see whole string.
Fix it to be displayed in multiline.
Change-Id: I749c04d6e1a7b49ebf4131adb3d39288ee907685
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Piotr Sawicki [Thu, 9 Nov 2017 14:15:18 +0000 (15:15 +0100)]
Add C# test app for PrivacyPrivilegeManager
Change-Id: I73480c06c35b061de2500ab4820e93972beb7d9c
Zofia Abramowska [Mon, 18 Sep 2017 14:21:11 +0000 (16:21 +0200)]
Release version 0.2.1
Fix SVACE defects and add test application for C API
Change-Id: If44840911678c6a4707b112f96c9494dc21ca678
Zofia Abramowska [Fri, 15 Sep 2017 16:06:35 +0000 (18:06 +0200)]
Fix displaying SM nullptr error
Change-Id: I9b7521adb8bbd1d0c5c67a9e4db29112bfa0c95d
Pawel Kowalski [Tue, 25 Jul 2017 11:34:23 +0000 (13:34 +0200)]
Add new application for testing the CAPI.
The app is written in Tizen Studio 4.0 and is based on the
example 'Account Manager' for profile mobile-4.0.
Change-Id: Id05dda75cde1a20e80d7a7743f3df8b3e148e571
Zofia Abramowska [Wed, 2 Aug 2017 09:02:03 +0000 (11:02 +0200)]
Change installation of plugins
Install *.so files instead of directory.
Change-Id: I15f691b9e26749b1d877b9e64bdbe740f400d8e4
Zofia Abramowska [Thu, 27 Jul 2017 14:08:55 +0000 (16:08 +0200)]
Release version 0.2.0
This release changes whole architecture of askuser.
Askuser is no longer a cynara agent, but a pair of client
and service providing API for privacy privilege permission
requests.
Change-Id: Id8e865e2558fb64b5f1752430c90155c1e0f09f0
Zofia Abramowska [Wed, 26 Jul 2017 15:12:20 +0000 (17:12 +0200)]
Merge remote-tracking branch 'origin/privacy-popup-issue' into tizen
Change-Id: If994debbb93bdd4e3f69ad91eb2b69a7f78fe539
Piotr Sawicki [Mon, 24 Jul 2017 11:59:31 +0000 (13:59 +0200)]
Protect from passing zero-length privileges to API
Change-Id: I33c076339812e9bb0dedec047112793be90aaf5a
Piotr Sawicki [Mon, 24 Jul 2017 11:30:06 +0000 (13:30 +0200)]
Add auto mode to the CAPI test app
The client sends randomly generated privilege at random intervals
of time. The server responds with 'deny once' to all pending requests
also at random intervals. This mode allows to perform stress tests of
the IPC module.
Change-Id: I52aa284fef5d50daec6831b02f3bc34a6679d12a
Zofia Abramowska [Mon, 24 Jul 2017 12:13:57 +0000 (14:13 +0200)]
Notify logic of popup response from popupper
Change-Id: Idf46c6b9f1a761bfdf7af25dcce06f9a13d0f7e0
Zofia Abramowska [Fri, 21 Jul 2017 17:01:30 +0000 (19:01 +0200)]
Fix accessor types of channels methods
* Channel : move onAccept, onClose, onReceive, onSend to protected
* ServerChannel, ClientChannel : move above methods to private
Change-Id: If689984a5de7cc40fb6df4b8c6f79e3328664f3e
Zofia Abramowska [Fri, 21 Jul 2017 15:16:25 +0000 (15:16 +0000)]
Merge "Show popup only for "Ask user" policy" into privacy-popup-issue
Zofia Abramowska [Fri, 21 Jul 2017 15:16:19 +0000 (15:16 +0000)]
Merge "Fix ServerCallbacks" into privacy-popup-issue
Piotr Sawicki [Fri, 21 Jul 2017 08:15:16 +0000 (10:15 +0200)]
Move the src/capi/doc folder to the main project folder
According to ACR requirements, the doc folder has to be located
in the main project folder.
Change-Id: Iae208d2747dd41e051ad94ba16be9eb19aa908b9
Piotr Sawicki [Fri, 21 Jul 2017 04:59:52 +0000 (06:59 +0200)]
Clarify the CAPI documentation
There are devices that don't have the hardware back
and home buttons. Descriptions of enums have been simplified.
Fix typos and other mistakes.
Change-Id: I7db5311934717d04d91820b1c95550f5488c969a
Zofia Abramowska [Thu, 20 Jul 2017 14:30:15 +0000 (16:30 +0200)]
Show popup only for "Ask user" policy
Change-Id: Id0e2b9fb13f8b06ad39668e623d35034ee89c52e
Zofia Abramowska [Thu, 20 Jul 2017 13:30:50 +0000 (15:30 +0200)]
Fix ServerCallbacks
* add missing include
* remove unused member m_popupper
Change-Id: I64f095349ecc7fdd4c09c43e729287d11a23072c
Piotr Sawicki [Thu, 20 Jul 2017 12:21:29 +0000 (14:21 +0200)]
Fix doxygen documentation after renaming ipc files
Change-Id: Ia3f34fc1af0a0605d19638ff2bee54d3e03f685f
Piotr Sawicki [Wed, 19 Jul 2017 11:53:34 +0000 (13:53 +0200)]
Tailor CAPI to meet the requirements of ACR
* Adjust doxygen documentation
* Change names of functions and enums in CAPI
* Adapt the source code to the above changes
Change-Id: Iaa2bb8817305c755fb9164a2a8013bff8b509723
Piotr Sawicki [Wed, 19 Jul 2017 07:34:49 +0000 (09:34 +0200)]
Add a guide for CAPI
Change-Id: I9ba183a703e8e73dab22de44b22afe6eeda1f1db
Zofia Abramowska [Wed, 19 Jul 2017 08:40:26 +0000 (10:40 +0200)]
Fix popping from empty queue
Change-Id: Iba4ced7ae4ddceb3a8a8922bf95b51775d19fe9f
Zofia Abramowska [Tue, 18 Jul 2017 15:34:01 +0000 (17:34 +0200)]
Bring back missing manifest from test rpm
Change-Id: Iedb062e8ce2fcd0e177806483772ca870926eb4c
Piotr Sawicki [Mon, 17 Jul 2017 14:33:52 +0000 (16:33 +0200)]
Make the CAPI documentation more consistent
Change-Id: I3c7048d8ec9a568f6125f25d17e4cda64a1cee9b
Piotr Sawicki [Mon, 17 Jul 2017 13:54:18 +0000 (15:54 +0200)]
Add the 'privilege' parameter to popup response callback
Apart from that, a protection against sending multiple requests
with the same privilege has been added. A new status code:
PRIVACY_PRIVILEGE_MANAGER_ERROR_ALREADY_IN_PROGRESS informs
an application when the above error occurs.
Change-Id: Ifb2397c99452d56f7327f0be3f54ce33b766488f
Piotr Sawicki [Mon, 17 Jul 2017 11:24:30 +0000 (13:24 +0200)]
Remove unnecessary @version tags from documentation
Change-Id: I9ac859af5c2effd8a560810fd443b442021baba6
Piotr Sawicki [Mon, 17 Jul 2017 09:48:19 +0000 (11:48 +0200)]
Fix warnings detected by static code analyzers
Change-Id: Ib7feacd42ab63b3841efcf025f9241c044f4e57f
Piotr Sawicki [Mon, 17 Jul 2017 09:36:36 +0000 (11:36 +0200)]
Add 's' command to the CAPI test application
From now on, the application has the 's' command which sends a pop-up
request, in the same way as 'r' command does, but after receiving
'deny forever' response it stops the application. Also, the source
code has been reorganised to achieve better readability.
Change-Id: If2bb7fcee45489ac8246bdbf6703ab0f88fdf87c
Zofia Abramowska [Mon, 17 Jul 2017 12:32:19 +0000 (14:32 +0200)]
Reduce number of generated rpms
* libs are not used standalone - squash them to common
* plugins don't make sense without service - move plugins to main rpm
* squash tests to one rpm
* squash devels to one rpm
Change-Id: I2f4c3462ca76ab43032e5979975d5e4b80c49728
Zofia Abramowska [Wed, 12 Jul 2017 16:22:26 +0000 (18:22 +0200)]
Rename files
* remove redundant ask-user- prefix
* remove askuser-notification directory
* rename ipc-lib to ipc
Change-Id: Iccfb2c4664b0aa8e05b12220b78db73fb82c8ead
Zofia Abramowska [Mon, 17 Jul 2017 12:00:20 +0000 (14:00 +0200)]
Distinguish no policy for asked privilege
Change-Id: I90a0b9454573924c89079e03ee61528773d0d387
Piotr Sawicki [Tue, 11 Jul 2017 06:54:20 +0000 (08:54 +0200)]
Add extensive logging to Sock and channel classes
* add logging of unusual situations
* add handling of unlink() errors
Change-Id: Ibc41a6bc1df29531f6405433f15817abe0bcc250
Piotr Sawicki [Tue, 11 Jul 2017 07:00:29 +0000 (09:00 +0200)]
Remove superfluous check in Sock
Change-Id: I160c69f448e0b3b92061392ed5729a7c3e97ce70
Piotr Sawicki [Tue, 11 Jul 2017 06:14:12 +0000 (08:14 +0200)]
Add ConnectionException
Change-Id: Ia523ba65284ad7612ecbaf165a0cfddf9a96d9a0
Piotr Sawicki [Tue, 11 Jul 2017 10:22:47 +0000 (12:22 +0200)]
Fix doxygen documentation in ipc-lib
Change-Id: I631f094555f5c81f535e88e42f85f406571c57be
Piotr Sawicki [Tue, 11 Jul 2017 10:21:55 +0000 (12:21 +0200)]
Remove unused headers
* remove unused #include directives
* remove unused header file
Change-Id: Ic433b713cd08b45366e66170a0fea4071f1b8e28
Piotr Sawicki [Mon, 10 Jul 2017 11:36:06 +0000 (13:36 +0200)]
Prevent from undefined behaviour during destruction of channel users
Change-Id: I07339e74068e066ec61a724b8a1ef6c2dd9670a0
Piotr Sawicki [Mon, 10 Jul 2017 08:56:56 +0000 (10:56 +0200)]
Fix doxygen documentation for CAPI
Change-Id: I65e4d19deab4f4e04710770050e1db6f65ce0f5c
Piotr Sawicki [Thu, 6 Jul 2017 15:08:16 +0000 (17:08 +0200)]
Implement app to test CAPI and simulate server side
* Add more detailed help
* Add switches for working as client or service
Change-Id: Iaef748054279cafc44f763be036d8c26db3e671d
Piotr Sawicki [Thu, 6 Jul 2017 13:54:13 +0000 (15:54 +0200)]
Adapt test sources to C++
Change-Id: I8e91afce91aa941015e454549b2f6f673889ce49
Piotr Sawicki [Fri, 7 Jul 2017 09:57:21 +0000 (11:57 +0200)]
Initialize local variable before passing it to client API
Change-Id: I6d28837e691a6e70d38af8a55fe68e4d5572c99c
Piotr Sawicki [Fri, 7 Jul 2017 07:40:48 +0000 (09:40 +0200)]
Free remaining callbacks while destroying a client
After calling a registered callback it has to be freed
to prevent from calling it again.
Change-Id: Iacd1e345f4e1ff43827044c461d6cb6db75a5911
Zofia Abramowska [Thu, 6 Jul 2017 08:42:08 +0000 (10:42 +0200)]
Check if dynamic cast fails
Change-Id: I256398d47cad30c9f4ce03f1cd0e974fe719f062
Zofia Abramowska [Wed, 5 Jul 2017 15:16:31 +0000 (17:16 +0200)]
Don't move event from vector
Moved event was used later, which resulted in error.
Change-Id: I920f285d2cd649aba5d2237aab8f5d1e1b70a810
Zofia Abramowska [Thu, 6 Jul 2017 08:37:02 +0000 (10:37 +0200)]
Remove fetching pkgLabel twice
Creating popup message unnecessarily fetched pkg label
from pkg label.
Change-Id: Ie98a9e5e170a2d86a68856c39153c7581f598c42
Zofia Abramowska [Thu, 6 Jul 2017 08:36:48 +0000 (10:36 +0200)]
Properly set current event id
Service side current event id wasn't set at all.
Change-Id: Ic8a82e9d2954bb69dd8da6e86a0dd00222d94d7c
Piotr Sawicki [Mon, 3 Jul 2017 14:36:54 +0000 (16:36 +0200)]
Implement checkPrivilege()
Change-Id: I91768ce30cced026bc7f15bc5381be5d5df7afc6
Piotr Sawicki [Mon, 3 Jul 2017 08:31:01 +0000 (10:31 +0200)]
Implement framing for protocol library
Change-Id: I4d8a7215107c88220fe6b8be79ea456bf00f452a
Piotr Sawicki [Mon, 3 Jul 2017 07:51:57 +0000 (09:51 +0200)]
Add handling exceptions to the client API
Change-Id: I0e4c32b1329bdd266c0424534c86970c5a0f6ce1
Piotr Sawicki [Fri, 30 Jun 2017 10:34:27 +0000 (12:34 +0200)]
Implement CAPI
* Bind askuser-client API to the GLib main loop mechanism.
* Add simple test program.
* Add an unknown error code type to API
Change-Id: Icc04d7021003bc7547f2294920011ec46eaa0344
Piotr Sawicki [Thu, 29 Jun 2017 09:19:56 +0000 (11:19 +0200)]
Add fetching credentials from socket fd
Change-Id: I5adc2b5e01b1747c86846eb3c1a565b7643892cc
Piotr Sawicki [Wed, 5 Jul 2017 11:30:43 +0000 (13:30 +0200)]
Implement client side asynchronous channel
* Implement an abstract channel and async client/server channels
* Adjust other modules to this new changes
Change-Id: I6788d01a220dfba3eb3ad2226a8a9ee96878153b
Piotr Sawicki [Wed, 5 Jul 2017 06:45:51 +0000 (08:45 +0200)]
Change visibility to hidden for client API
Change-Id: Icf6acc6bbd2c5195f3ed1d750ab01d66668a6d78
Piotr Sawicki [Wed, 28 Jun 2017 14:06:22 +0000 (16:06 +0200)]
Move protocol to ipc-lib
Change-Id: I42f4b1f3f8b28f7f1da52a281984e27e49768130