diff options
Diffstat (limited to 'data')
-rwxr-xr-x | data/aul_mime.sh | 28 | ||||
-rwxr-xr-x | data/aul_service.sh | 28 | ||||
-rwxr-xr-x | data/aul_service_test.sh | 15 | ||||
-rwxr-xr-x | data/create_default_service.sh | 96 | ||||
-rw-r--r-- | data/mida_db.sql | 47 | ||||
-rw-r--r-- | data/miregex/callto.uri | 2 | ||||
-rw-r--r-- | data/miregex/contact_shortcut.uri | 2 | ||||
-rw-r--r-- | data/miregex/email.uri | 2 | ||||
-rw-r--r-- | data/miregex/file.uri | 2 | ||||
-rw-r--r-- | data/miregex/http.uri | 2 | ||||
-rw-r--r-- | data/miregex/im.uri | 1 | ||||
-rw-r--r-- | data/miregex/location.uri | 1 | ||||
-rw-r--r-- | data/miregex/mmsto.uri | 1 | ||||
-rw-r--r-- | data/miregex/phonenum.uri | 1 | ||||
-rw-r--r-- | data/miregex/sms.uri | 1 | ||||
-rw-r--r-- | data/miregex/tel.uri | 1 | ||||
-rw-r--r-- | data/service/README | 1 |
17 files changed, 231 insertions, 0 deletions
diff --git a/data/aul_mime.sh b/data/aul_mime.sh new file mode 100755 index 00000000..80a7153b --- /dev/null +++ b/data/aul_mime.sh @@ -0,0 +1,28 @@ +usage() +{ + echo "----------------------------------------------------------" + echo "aul_mime.sh package_name mimetype1 mimetype2 ... mimetypeN" + echo "----------------------------------------------------------" +} + +if [ -z $1 ] +then + echo "package name is NULL" + usage + exit +fi + +if [ -z $2 ] +then + echo "mimetype is NULL" + usage + exit +fi + +pkg=$1 +shift +while [ "$*" != "" ] +do + sqlite3 /opt/dbspace/.mida.db "insert into mida(pkg_name,mime_type) values ('$pkg','$1')" + shift +done diff --git a/data/aul_service.sh b/data/aul_service.sh new file mode 100755 index 00000000..bae31533 --- /dev/null +++ b/data/aul_service.sh @@ -0,0 +1,28 @@ +usage() +{ + echo "--------------------------------------------------------------------------" + echo "aul_services.sh package_name service_name1 service_name2 ... service_nameN" + echo "--------------------------------------------------------------------------" +} + +if [ -z $1 ] +then + echo "package name is NULL" + usage + exit +fi + +if [ -z $2 ] +then + echo "service name is NULL" + usage + exit +fi + +pkg=$1 +shift +while [ "$*" != "" ] +do + sqlite3 /opt/dbspace/.mida.db "insert into svc(pkg_name,svc_name) values ('$pkg','$1')" + shift +done diff --git a/data/aul_service_test.sh b/data/aul_service_test.sh new file mode 100755 index 00000000..31add47f --- /dev/null +++ b/data/aul_service_test.sh @@ -0,0 +1,15 @@ +usage() +{ + echo "---------------------------------" + echo "aul_service_test.sh service_name" + echo "---------------------------------" +} + +if [ -z $1 ] +then + echo "service name is NULL" + usage + exit +fi + +sqlite3 /opt/dbspace/.mida.db "insert into system_svc(svc_name) values ('$1')" diff --git a/data/create_default_service.sh b/data/create_default_service.sh new file mode 100755 index 00000000..5dbed2a1 --- /dev/null +++ b/data/create_default_service.sh @@ -0,0 +1,96 @@ +mkdir -p $OUTDIR +pushd $OUTDIR + +mkdir -p contact/cmds +mkdir -p contact/apps + +echo 0 > contact/cmds/create +echo 0 > contact/cmds/view +echo 0 > contact/cmds/edit +echo 1 > contact/cmds/search +echo "" > contact/apps/org.tizen.contacts + +mkdir -p calendar/cmds +mkdir -p calendar/apps + +echo 0 > calendar/cmds/create +echo 0 > calendar/cmds/view +echo "" > calendar/apps/org.tizen.efl-calendar + +mkdir -p memo/cmds +mkdir -p memo/apps + +echo 0 > memo/cmds/create +echo 0 > memo/cmds/view +echo "" > memo/apps/org.tizen.memo + +mkdir -p email/cmds +mkdir -p email/apps + +echo 0 > email/cmds/create +echo 0 > email/cmds/view +echo "" > email/apps/org.tizen.email + +mkdir -p message/cmds +mkdir -p message/apps + +echo 0 > message/cmds/create +echo 0 > message/cmds/view +echo "" > message/apps/org.tizen.message + +mkdir -p camera/cmds +mkdir -p camera/apps + +echo 1 > camera/cmds/take_picture +echo 1 > camera/cmds/rec_video +echo 1 > camera/cmds/read_barcode +echo "" > camera/apps/org.tizen.camera-app + +mkdir -p voice_record/cmds +mkdir -p voice_record/apps + +echo 1 > voice_record/cmds/rec_voice +echo "" > voice_record/apps/org.tizen.voicerecorder + +mkdir -p file_browser/cmds +mkdir -p file_browser/apps + +echo 0 > file_browser/cmds/browse +echo "" > file_browser/apps/org.tizen.myfile + +mkdir -p map/cmds +mkdir -p map/apps + +echo 0 > map/cmds/show_place +echo 0 > map/cmds/route_path + +mkdir -p alarm/cmds +mkdir -p alarm/apps + +echo 0 > alarm/cmds/create +echo "" > alarm/apps/org.tizen.alarm + +mkdir -p search/cmds +mkdir -p search/apps + +echo 1 > search/cmds/search +echo "" > search/apps/org.tizen.smartsearch + +mkdir -p voice_call/cmds +mkdir -p voice_call/apps + +echo 0 > voice_call/cmds/mtcall +echo 0 > voice_call/cmds/mocall +echo "" > voice_call/apps/org.tizen.voice-call-ui + +mkdir -p video_call/cmds +mkdir -p video_call/apps + +echo 0 > video_call/cmds/mtcall +echo 0 > video_call/cmds/mocall +echo "" > video_call/apps/org.tizen.vtmain + +popd + +sync + diff --git a/data/mida_db.sql b/data/mida_db.sql new file mode 100644 index 00000000..6fdaf1e2 --- /dev/null +++ b/data/mida_db.sql @@ -0,0 +1,47 @@ +PRAGMA journal_mode = PERSIST; + +CREATE TABLE IF NOT EXISTS mida ( + id INTEGER PRIMARY KEY, + pkg_name TEXT, + mime_type TEXT UNIQUE NOT NULL +); + +CREATE TABLE IF NOT EXISTS svc ( + id INTEGER PRIMARY KEY, + pkg_name TEXT, + svc_name TEXT UNIQUE NOT NULL +); + +DROP TABLE IF EXISTS system_svc; + +CREATE TABLE IF NOT EXISTS system_svc ( + id INTEGER PRIMARY KEY, + svc_name TEXT UNIQUE NOT NULL +); + + +INSERT INTO system_svc(svc_name) VALUES ("create_alarm"); +INSERT INTO system_svc(svc_name) VALUES ("open_calendar"); +INSERT INTO system_svc(svc_name) VALUES ("create_event"); +INSERT INTO system_svc(svc_name) VALUES ("view_event"); +INSERT INTO system_svc(svc_name) VALUES ("take_picture"); +INSERT INTO system_svc(svc_name) VALUES ("record_video"); +INSERT INTO system_svc(svc_name) VALUES ("read_barcode"); +INSERT INTO system_svc(svc_name) VALUES ("search_contact"); +INSERT INTO system_svc(svc_name) VALUES ("create_email"); +INSERT INTO system_svc(svc_name) VALUES ("view_email"); +INSERT INTO system_svc(svc_name) VALUES ("browse_file"); +INSERT INTO system_svc(svc_name) VALUES ("create_memo"); +INSERT INTO system_svc(svc_name) VALUES ("view_memo"); +INSERT INTO system_svc(svc_name) VALUES ("create_message"); +INSERT INTO system_svc(svc_name) VALUES ("view_message"); +INSERT INTO system_svc(svc_name) VALUES ("search"); +INSERT INTO system_svc(svc_name) VALUES ("make_videocall"); +INSERT INTO system_svc(svc_name) VALUES ("make_voicecall"); +INSERT INTO system_svc(svc_name) VALUES ("record_voice"); +INSERT INTO system_svc(svc_name) VALUES ("play_music"); +INSERT INTO system_svc(svc_name) VALUES ("browse_web"); +INSERT INTO system_svc(svc_name) VALUES ("update_facebook"); +INSERT INTO system_svc(svc_name) VALUES ("update_twitter"); +INSERT INTO system_svc(svc_name) VALUES ("open_ebook"); + diff --git a/data/miregex/callto.uri b/data/miregex/callto.uri new file mode 100644 index 00000000..9fe26289 --- /dev/null +++ b/data/miregex/callto.uri @@ -0,0 +1,2 @@ +^( )*callto:(//+)?(\+)?[0-9]+$ +Call Client diff --git a/data/miregex/contact_shortcut.uri b/data/miregex/contact_shortcut.uri new file mode 100644 index 00000000..f81d208c --- /dev/null +++ b/data/miregex/contact_shortcut.uri @@ -0,0 +1,2 @@ +(^( )*contact_shortcut:)([0-9]+:)([+]|[#]+)?([0-9]+) +Contact Shortcut Internal diff --git a/data/miregex/email.uri b/data/miregex/email.uri new file mode 100644 index 00000000..bc2ee76c --- /dev/null +++ b/data/miregex/email.uri @@ -0,0 +1,2 @@ +(^( )*mailto:[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)|(^( )*[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+) +Email Client diff --git a/data/miregex/file.uri b/data/miregex/file.uri new file mode 100644 index 00000000..97dbbc94 --- /dev/null +++ b/data/miregex/file.uri @@ -0,0 +1,2 @@ +^( )*file:///?[a-zA-Z0-9._-]+ +Browser or FileManager client diff --git a/data/miregex/http.uri b/data/miregex/http.uri new file mode 100644 index 00000000..2697f3c7 --- /dev/null +++ b/data/miregex/http.uri @@ -0,0 +1,2 @@ +(^( )*http(s)?://)|(^( )*www.) +Browser Client diff --git a/data/miregex/im.uri b/data/miregex/im.uri new file mode 100644 index 00000000..33dcd352 --- /dev/null +++ b/data/miregex/im.uri @@ -0,0 +1 @@ +^( )*im:[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]* diff --git a/data/miregex/location.uri b/data/miregex/location.uri new file mode 100644 index 00000000..54b0f99e --- /dev/null +++ b/data/miregex/location.uri @@ -0,0 +1 @@ +^( )*[NSWE]( )*[0-9]+(.[0-9]+)*([ ,;])*[NSWE]( )*[0-9]+(.[0-9]+)* diff --git a/data/miregex/mmsto.uri b/data/miregex/mmsto.uri new file mode 100644 index 00000000..d8a6bedc --- /dev/null +++ b/data/miregex/mmsto.uri @@ -0,0 +1 @@ +^( )*mmsto:(\+)?[0-9-]+\?cc=(([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)|((\+)?[0-9-]+))?&subject=.+$ diff --git a/data/miregex/phonenum.uri b/data/miregex/phonenum.uri new file mode 100644 index 00000000..9fb5643b --- /dev/null +++ b/data/miregex/phonenum.uri @@ -0,0 +1 @@ +^(\+)?[0-9/.-]*(\\([0-9]+\\))?[0-9/.-]{7,} diff --git a/data/miregex/sms.uri b/data/miregex/sms.uri new file mode 100644 index 00000000..ffadb783 --- /dev/null +++ b/data/miregex/sms.uri @@ -0,0 +1 @@ +^( )*sms:(\+)?[0-9-]+$ diff --git a/data/miregex/tel.uri b/data/miregex/tel.uri new file mode 100644 index 00000000..47fe533c --- /dev/null +++ b/data/miregex/tel.uri @@ -0,0 +1 @@ +^( )*tel:(//+)?(\+)?[0-9-]+$ diff --git a/data/service/README b/data/service/README new file mode 100644 index 00000000..0be6f7cd --- /dev/null +++ b/data/service/README @@ -0,0 +1 @@ +system service directory |