From d20352d8b2611fef0e0478bb1e606827306af12c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 17 Jan 2005 01:31:35 +0000 Subject: [PATCH] Added source files for our MIME database. The files are in rdef format, specifying resources. They are converted via rc to resource files and those in turn via resattr to empty files with attributes. Ideally rc would understand attributes, too... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10786 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/data/beos_mime/application.super | 4 + src/data/beos_mime/application/pdf | 8 ++ src/data/beos_mime/application/zip | 14 ++++ src/data/beos_mime/audio.super | 34 +++++++++ src/data/beos_mime/audio/wav | 15 ++++ src/data/beos_mime/audio/x-mpeg | 106 ++++++++++++++++++++++++++ src/data/beos_mime/image.super | 6 ++ src/data/beos_mime/image/gif | 16 ++++ src/data/beos_mime/image/jpeg | 17 +++++ src/data/beos_mime/image/png | 8 ++ src/data/beos_mime/message.super | 4 + src/data/beos_mime/message/rfc822 | 6 ++ src/data/beos_mime/multipart.super | 4 + src/data/beos_mime/text.super | 6 ++ src/data/beos_mime/text/html | 22 ++++++ src/data/beos_mime/text/plain | 14 ++++ src/data/beos_mime/text/x-source-code | 26 +++++++ src/data/beos_mime/video.super | 6 ++ src/data/beos_mime/video/mpeg | 10 +++ 19 files changed, 326 insertions(+) create mode 100644 src/data/beos_mime/application.super create mode 100644 src/data/beos_mime/application/pdf create mode 100644 src/data/beos_mime/application/zip create mode 100644 src/data/beos_mime/audio.super create mode 100644 src/data/beos_mime/audio/wav create mode 100644 src/data/beos_mime/audio/x-mpeg create mode 100644 src/data/beos_mime/image.super create mode 100644 src/data/beos_mime/image/gif create mode 100644 src/data/beos_mime/image/jpeg create mode 100644 src/data/beos_mime/image/png create mode 100644 src/data/beos_mime/message.super create mode 100644 src/data/beos_mime/message/rfc822 create mode 100644 src/data/beos_mime/multipart.super create mode 100644 src/data/beos_mime/text.super create mode 100644 src/data/beos_mime/text/html create mode 100644 src/data/beos_mime/text/plain create mode 100644 src/data/beos_mime/text/x-source-code create mode 100644 src/data/beos_mime/video.super create mode 100644 src/data/beos_mime/video/mpeg diff --git a/src/data/beos_mime/application.super b/src/data/beos_mime/application.super new file mode 100644 index 0000000000..25ec04765f --- /dev/null +++ b/src/data/beos_mime/application.super @@ -0,0 +1,4 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "application"; diff --git a/src/data/beos_mime/application/pdf b/src/data/beos_mime/application/pdf new file mode 100644 index 0000000000..158ad8aa69 --- /dev/null +++ b/src/data/beos_mime/application/pdf @@ -0,0 +1,8 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "application/pdf"; + +resource(2, "META:SNIFF_RULE") "0.50 (\"%PDF\")"; + +resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.mp-xpdf"; diff --git a/src/data/beos_mime/application/zip b/src/data/beos_mime/application/zip new file mode 100644 index 0000000000..313cc854f2 --- /dev/null +++ b/src/data/beos_mime/application/zip @@ -0,0 +1,14 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "application/zip"; + +resource(2, "META:SNIFF_RULE") "0.40 (\"PK\\003\\004\")"; + +resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.obos-Expander"; + +resource(4, "META:EXTENS") message(234) +{ + "extensions" = "zip", + "type" = "application/zip" +}; diff --git a/src/data/beos_mime/audio.super b/src/data/beos_mime/audio.super new file mode 100644 index 0000000000..c8b6a4bd4e --- /dev/null +++ b/src/data/beos_mime/audio.super @@ -0,0 +1,34 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "audio"; + +resource(2, "META:L:DESC") #'MLDC' "generic audio"; + +resource(3, "META:S:DESC") #'MSDC' "generic audio"; + +resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc"; + +resource(5, "META:EXTENS") message(234) +{ + "type" = "audio" +}; + +resource(6, "META:ATTR_INFO") message(233) +{ + "attr:name" = "Audio:Length", + "attr:name" = "Audio:Bitrate", + "attr:public_name" = "Playing time", + "attr:public_name" = "Bitrate", + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:viewable" = true, + "attr:viewable" = true, + "attr:editable" = false, + "attr:editable" = false, + "attr:width" = 60, + "attr:width" = 50, + "attr:alignment" = 1, + "attr:alignment" = 1, + "type" = "audio" +}; diff --git a/src/data/beos_mime/audio/wav b/src/data/beos_mime/audio/wav new file mode 100644 index 0000000000..1112d19624 --- /dev/null +++ b/src/data/beos_mime/audio/wav @@ -0,0 +1,15 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "audio/wav"; + +resource(2, "META:S:DESC") #'MSDC' "WAVE Sound File"; + +resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc"; + +resource(4, "META:EXTENS") message(234) +{ + "extensions" = "wav", + "type" = "audio/wav" +}; + diff --git a/src/data/beos_mime/audio/x-mpeg b/src/data/beos_mime/audio/x-mpeg new file mode 100644 index 0000000000..cac231e743 --- /dev/null +++ b/src/data/beos_mime/audio/x-mpeg @@ -0,0 +1,106 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "audio/x-mpeg"; + +resource(3, "META:L:DESC") #'MLDC' "MPEG audio file"; + +resource(4, "META:S:DESC") #'MSDC' "MPEG audio file"; + +resource(5, "META:PREF_APP") #'MSIG' "application/x-vnd.videolan-vlc"; + +resource(6, "META:EXTENS") message(234) +{ + "extensions" = "mp2", + "extensions" = "MP2", + "extensions" = "mp3", + "extensions" = "MP3", + "type" = "audio/x-mpeg" +}; + +resource(7, "META:ATTR_INFO") message(233) +{ + "attr:name" = "Audio:Artist", + "attr:name" = "Audio:Title", + "attr:name" = "Audio:Album", + "attr:name" = "Audio:Track", + "attr:name" = "Audio:Year", + "attr:name" = "Audio:Comment", + "attr:name" = "Audio:Genre", + "attr:name" = "Audio:Rating", + "attr:name" = "Audio:Length", + "attr:name" = "Audio:Bitrate", + "attr:public_name" = "Artist", + "attr:public_name" = "Title", + "attr:public_name" = "Album", + "attr:public_name" = "Track", + "attr:public_name" = "Year", + "attr:public_name" = "Comment", + "attr:public_name" = "Genre", + "attr:public_name" = "Rating", + "attr:public_name" = "Playing time", + "attr:public_name" = "Bitrate", + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'LONG', + "attr:type" = 'LONG', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'LONG', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = false, + "attr:editable" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:extra" = false, + "attr:width" = 30, + "attr:width" = 30, + "attr:width" = 30, + "attr:width" = 30, + "attr:width" = 30, + "attr:width" = 40, + "attr:width" = 30, + "attr:width" = 15, + "attr:width" = 60, + "attr:width" = 50, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 1, + "attr:alignment" = 1, + "type" = "audio/x-mpeg", + "type" = "audio/x-mpeg" +}; + diff --git a/src/data/beos_mime/image.super b/src/data/beos_mime/image.super new file mode 100644 index 0000000000..fd3dbd3f8d --- /dev/null +++ b/src/data/beos_mime/image.super @@ -0,0 +1,6 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "image"; + +resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; diff --git a/src/data/beos_mime/image/gif b/src/data/beos_mime/image/gif new file mode 100644 index 0000000000..ca7ade3502 --- /dev/null +++ b/src/data/beos_mime/image/gif @@ -0,0 +1,16 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "image/gif"; + +resource(2, "META:SNIFF_RULE") "0.70 (\"GIF8\")"; + +resource(3, "META:S:DESC") #'MSDC' "GIF Image"; + +resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; + +resource(5, "META:EXTENS") message(234) +{ + "extensions" = "gif", + "type" = "image/gif" +}; diff --git a/src/data/beos_mime/image/jpeg b/src/data/beos_mime/image/jpeg new file mode 100644 index 0000000000..9c944cd702 --- /dev/null +++ b/src/data/beos_mime/image/jpeg @@ -0,0 +1,17 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "image/jpeg"; + +resource(2, "META:SNIFF_RULE") "0.50 (\"\\377\\330\\377\")"; + +resource(3, "META:S:DESC") #'MSDC' "JPEG Image"; + +resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; + +resource(5, "META:EXTENS") message(234) +{ + "extensions" = "jpeg", + "extensions" = "jpg", + "type" = "image/jpeg" +}; diff --git a/src/data/beos_mime/image/png b/src/data/beos_mime/image/png new file mode 100644 index 0000000000..560f063ec8 --- /dev/null +++ b/src/data/beos_mime/image/png @@ -0,0 +1,8 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "image/png"; + +resource(2, "META:SNIFF_RULE") "0.70 (\"\\211PNG\\015\\012\\032\\012\")"; + +resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; diff --git a/src/data/beos_mime/message.super b/src/data/beos_mime/message.super new file mode 100644 index 0000000000..eec87624dc --- /dev/null +++ b/src/data/beos_mime/message.super @@ -0,0 +1,4 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "message"; diff --git a/src/data/beos_mime/message/rfc822 b/src/data/beos_mime/message/rfc822 new file mode 100644 index 0000000000..e5efdf66b6 --- /dev/null +++ b/src/data/beos_mime/message/rfc822 @@ -0,0 +1,6 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "message/rfc822"; + +resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.Be-MAIL"; diff --git a/src/data/beos_mime/multipart.super b/src/data/beos_mime/multipart.super new file mode 100644 index 0000000000..30dfdf0761 --- /dev/null +++ b/src/data/beos_mime/multipart.super @@ -0,0 +1,4 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "multipart"; diff --git a/src/data/beos_mime/text.super b/src/data/beos_mime/text.super new file mode 100644 index 0000000000..ec26aa568c --- /dev/null +++ b/src/data/beos_mime/text.super @@ -0,0 +1,6 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "text"; + +resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.styled-edit"; diff --git a/src/data/beos_mime/text/html b/src/data/beos_mime/text/html new file mode 100644 index 0000000000..384a4c799f --- /dev/null +++ b/src/data/beos_mime/text/html @@ -0,0 +1,22 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "text/html"; + +resource(2, "META:SNIFF_RULE") #'CSTR' array +{ + "0.40 [0:64]( -i \"