framework/api/url-download.git
11 years agoadd license 2.0alpha master 2.0_alpha submit/master/20120920.151034
Bang Kwang min [Fri, 7 Sep 2012 02:17:10 +0000 (11:17 +0900)]
add license

Change-Id: I2324828dd73ad2d4252e36b5c0d38088ebb2c4f8

11 years agochange Group
Bang Kwang min [Fri, 7 Sep 2012 01:49:34 +0000 (10:49 +0900)]
change Group

Change-Id: I8ef5986c231a6ec57a3a1b0b2b8c5cf1f9770843

11 years agofix the erro in spec file
Bang Kwang min [Fri, 7 Sep 2012 01:43:38 +0000 (10:43 +0900)]
fix the erro in spec file

Change-Id: I1439613193a8f2952af99a17a52a967dc2306e1b

11 years agofix the error and warning of spec file
Bang Kwang min [Fri, 7 Sep 2012 00:20:58 +0000 (09:20 +0900)]
fix the error and warning of spec file

[Title] N/A
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A

3 error, 2 warnings found by rpmlint )
W: non-standard-group TO_BE_FILLED_IN
line 48: E: hardcoded-library-path in /usr/lib/libcapi-web-url-download.so
line 52: E: hardcoded-library-path in /usr/lib/libcapi-web-url-download.so
line 53: E: hardcoded-library-path in /usr/lib/pkgconfig/capi-web-url-download.pc
line 24: W: mixed-use-of-spaces-and-tabs (spaces: line 24, tab: line 2)

11 years agoRelease a package
Bang Kwang min [Fri, 7 Sep 2012 00:00:34 +0000 (09:00 +0900)]
Release a package

[Title] N/A
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A

changes)
 fix timeout thread can run exactly

Upload Version : capi-web-url-download_0.0.8-9

Change-Id: I9b32119e93e92121c6336bf8b6060462087bc3f5

11 years agofix timeout thread can run exactly
Bang Kwang min [Thu, 6 Sep 2012 02:58:58 +0000 (11:58 +0900)]
fix timeout thread can run exactly

[Title] fix timeout of event thread can run exactly
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

additional)
change the type of variable
initialize the timeval

Change-Id: Ic6cc9ab9270084dbca3015e6b90335d0162086a5

11 years agoRelease a package
Bang Kwang min [Thu, 6 Sep 2012 05:45:48 +0000 (14:45 +0900)]
Release a package

[Title] N/A
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A

changes)
 check the state before clear socket
 add limitation in already completed state
 add checking INVALID_STATE error

Upload Version : capi-web-url-download_0.0.8-8

11 years agoadd checking INVALID_STATE error
Bang Kwang min [Wed, 5 Sep 2012 01:46:23 +0000 (10:46 +0900)]
add checking INVALID_STATE error

[Title] add checking INVALID_STATE error
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: I5d962b0972208ae42f20dec94d48b3a268854edb

11 years agoadd limitation in already completed state
Bang Kwang min [Wed, 5 Sep 2012 01:22:18 +0000 (10:22 +0900)]
add limitation in already completed state

[Title] add limitation in already completed state in url_download_start API
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: Ifce2105f7ab5594849f3f2939dc5b9a18a73cc8a

11 years agocheck the state before clear socket
Bang Kwang min [Wed, 5 Sep 2012 00:56:30 +0000 (09:56 +0900)]
check the state before clear socket

[Title] check the state before clear socket
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: I5c1e45420042cfeb3fff1701506401cc9e7da937

11 years agoSync codes
Jungki Kwak [Tue, 4 Sep 2012 10:18:23 +0000 (19:18 +0900)]
Sync codes

Change the name of application operation
Remove unused code which is base on libdownload-agent
Add exception handling for non requestid
Call clear_provider after getting the state
url_download_get_state return IO error
Resolve prevent defects

modified:   CMakeLists.txt
modified:   include/url_download.h
modified:   include/url_download_private.h
modified:   packaging/capi-web-url-download.spec
deleted:    src/url_download.c
modified:   src/url_download_provider.c

11 years agorelease the pacakge
Bang Kwang min [Mon, 3 Sep 2012 05:14:34 +0000 (14:14 +0900)]
release the pacakge

changeset)
request STOP for free after finished download
calling stopped callback in error case
pause/resume the download even if no socket or callback
stop the download even if no socket or callback

11 years agorequest STOP for free after finished download
Bang Kwang min [Mon, 3 Sep 2012 01:07:41 +0000 (10:07 +0900)]
request STOP for free after finished download

[Title] send STOP event to download-provider if stpped the download
[Issue#] N/A
[Problem] download-provider free even if client does not accpet the event yet.
[Cause] N/A
[Solution] send STOP event, and provider wait till getting STOP event
[SCMRequest] N/A

Change-Id: I0409ed64910143873dc910f366e8ddee8199962a

11 years agocalling stopped callback in error case
Bang Kwang min [Fri, 31 Aug 2012 05:01:50 +0000 (14:01 +0900)]
calling stopped callback in error case

[Title] call stopped callback in all error case in event thread
[Issue#] N/A
[Problem] sometimes one thread does not get event anymore. lockup.
[Cause] client can't know error case when broken socket with download-provider
[Solution] alert error by callback in all error case
[SCMRequest] N/A

fix the crash in clear_socket
 - gallery call url_download_destory in callback function.
fix lockup issue by read block
 - if failed to send the packet in url_download_stop,
   add exception handling to not call ipc_read if failed ipc_send()

Change-Id: I534f6d5c41868fdc77f795c445fe79677541fcec

11 years agopause/resume the download even if no socket or callback
Bang Kwang min [Tue, 28 Aug 2012 07:27:57 +0000 (16:27 +0900)]
pause/resume the download even if no socket or callback

[Title] pause/resume the download even if no socket or callback
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: Ie51f17a144cd8c7bdd77506197383ea5d31f75c8

11 years agostop the download even if no socket or callback
Bang Kwang min [Tue, 28 Aug 2012 06:33:13 +0000 (15:33 +0900)]
stop the download even if no socket or callback

[Title] stop the download even if no socket or callback
[Issue#] N/A
[Problem] if no socket, stop API does not work.
[Cause] N/A
[Solution] after checking socket, create the socket if need
[SCMRequest] N/A

functionalize for sending the structure

Change-Id: I09be5b5a830e8c7e618b9adbc5767f830b46ab51

11 years agorelease the pacakge
Bang Kwang min [Thu, 30 Aug 2012 07:01:52 +0000 (16:01 +0900)]
release the pacakge

changeset)
maxfd should be updated before created event thread

Upload Version : capi-web-url-download_0.0.8-4

11 years agomaxfd should be updated before created event thread
Bang Kwang min [Thu, 30 Aug 2012 06:52:24 +0000 (15:52 +0900)]
maxfd should be updated before created event thread

[Title] maxfd should be updated before created event thread
[Issue#] N/A
[Problem] client can not receive any event if thread is created fastly before updating maxfd
[Cause] N/A
[Solution] update maxfd and add to fd_set before creating thread
[SCMRequest] N/A

Change-Id: I9a283a53e82e86961fbde19db0ce85615768247a

11 years agorelease the pacakge
Bang Kwang min [Thu, 30 Aug 2012 06:23:27 +0000 (15:23 +0900)]
release the pacakge

    changeset)
    allow to call url_download_stop in case of PAUSED state
    remove duplicated call for creating socket
    fix the crash regarding pthread_kill

11 years agofix the crash regarding pthread_kill
Bang Kwang min [Thu, 30 Aug 2012 05:13:22 +0000 (14:13 +0900)]
fix the crash regarding pthread_kill

[Title] fix the crash regarding pthread_kill
[Issue#] N/A
[Problem] calling pthread_kill with wrong pid
[Cause] wrong checking whether thread is alive
[Solution] check by maxfd variable.
[SCMRequest] N/A

Change-Id: Ic0935aa012866b3d79c3143eac0e93316d5e0341

11 years agoremove duplicated call for creating socket
Bang Kwang min [Wed, 29 Aug 2012 01:19:01 +0000 (10:19 +0900)]
remove duplicated call for creating socket

[Title] remove duplicated call for creating socket
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: Ib92cb9d71dbedb96642b1957971cbf0f5ff792ee

11 years agoallow to call url_download_stop in case of PAUSED state
Bang Kwang min [Thu, 30 Aug 2012 03:16:36 +0000 (12:16 +0900)]
allow to call url_download_stop in case of PAUSED state

[Title] allow to call url_download_stop in case of PAUSED state
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] N/A

Change-Id: I865fd34771a8cde87f005148a3cc5c79b41511c3

11 years agorelease package
Bang Kwang min [Tue, 28 Aug 2012 00:31:36 +0000 (09:31 +0900)]
release package

Upload Version : capi-web-url-download_0.0.8-2

11 years agoCode Sync with Private GIT
Bang Kwang min [Mon, 27 Aug 2012 08:38:17 +0000 (17:38 +0900)]
Code Sync with Private GIT

changes)
fix the bug take a long time to receive first event
get state info from download-provider even if no connection.
one thread model for event
Add to pass service handle data to download daemonResolve a bug about state
enhance the exception handling in event thread

11 years agoThe base model is changed
Jungki Kwak [Tue, 21 Aug 2012 10:10:00 +0000 (19:10 +0900)]
The base model is changed

The base model change the libdownload-agent package to the download-provider daemon package
modified:   CMakeLists.txt
modified:   debian/changelog
modified:   include/url_download.h
modified:   include/url_download_private.h
modified:   packaging/capi-web-url-download.spec
new file:   sample/ipc_test.c
modified:   src/url_download.c
new file:   src/url_download_provider.c

12 years agoupload tizen1.0 source
Kim Kibum [Sun, 29 Apr 2012 07:58:34 +0000 (16:58 +0900)]
upload tizen1.0 source

12 years agoInitial empty repository
eunmee moon [Fri, 27 Apr 2012 12:35:37 +0000 (21:35 +0900)]
Initial empty repository