Add some URI schemes to the list of suggested new ones to support.
Added support for the useless about: URI scheme, which asks an app with the provided signature its about window, or launched AboutSystem. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43103 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+55
-19
@@ -244,6 +244,23 @@ UrlWrapper::ArgvReceived(int32 argc, char** argv)
|
||||
PRINT(("PASS='%s'\n", pass.String()));
|
||||
PRINT(("PATH='%s'\n", path.String()));
|
||||
|
||||
if (proto == "about") {
|
||||
app_info info;
|
||||
BString sig;
|
||||
// BUrl could get an accessor for the full - proto part...
|
||||
sig = host << "/" << path;
|
||||
BMessage msg(B_ABOUT_REQUESTED);
|
||||
if (be_roster->GetAppInfo(sig.String(), &info) == B_OK) {
|
||||
BMessenger msgr(sig.String());
|
||||
msgr.SendMessage(&msg);
|
||||
return;
|
||||
}
|
||||
if (be_roster->Launch(sig.String(), &msg) == B_OK)
|
||||
return;
|
||||
be_roster->Launch("application/x-vnd.Haiku-About");
|
||||
return;
|
||||
}
|
||||
|
||||
if (proto == "telnet") {
|
||||
BString cmd("telnet ");
|
||||
if (url.HasUser())
|
||||
@@ -448,26 +465,45 @@ UrlWrapper::ArgvReceived(int32 argc, char** argv)
|
||||
return;
|
||||
}
|
||||
|
||||
// Audio: ?
|
||||
|
||||
// vnc: ?
|
||||
// irc: ?
|
||||
//
|
||||
// svn: ?
|
||||
// cvs: ?
|
||||
// smb: cifsmount ?
|
||||
// nfs: mount_nfs ?
|
||||
//
|
||||
// mailto: ? Mail & Beam both handle it already (not fully though).
|
||||
//
|
||||
// mid: cid: as per RFC 2392
|
||||
// http://www.rfc-editor.org/rfc/rfc2392.txt query MAIL:cid
|
||||
//
|
||||
// itps: pcast: podcast: s//http/ + parse xml to get url to mp3 stream...
|
||||
// audio: s//http:/ + default MediaPlayer
|
||||
// -- see http://forums.winamp.com/showthread.php?threadid=233130
|
||||
//
|
||||
// gps: ? I should submit an RFC for that one :)
|
||||
/*
|
||||
|
||||
More ?
|
||||
cf. http://en.wikipedia.org/wiki/URI_scheme
|
||||
cf. http://www.iana.org/assignments/uri-schemes.html
|
||||
|
||||
Audio: (SoundPlay specific, identical to http:// to a shoutcast server)
|
||||
|
||||
vnc: ?
|
||||
irc: ?
|
||||
im: http://tools.ietf.org/html/rfc3860
|
||||
|
||||
svn: ?
|
||||
cvs: ?
|
||||
smb: cifsmount ?
|
||||
nfs: mount_nfs ? http://tools.ietf.org/html/rfc2224
|
||||
ipp: http://tools.ietf.org/html/rfc3510
|
||||
|
||||
mailto: ? Mail & Beam both handle it already (not fully though).
|
||||
imap: to describe mail accounts ? http://tools.ietf.org/html/rfc5092
|
||||
pop: http://tools.ietf.org/html/rfc2384
|
||||
mid: cid: as per RFC 2392
|
||||
http://www.rfc-editor.org/rfc/rfc2392.txt query MAIL:cid
|
||||
|
||||
itps: pcast: podcast: s//http/ + parse xml to get url to mp3 stream...
|
||||
audio: s//http:/ + default MediaPlayer
|
||||
-- see http://forums.winamp.com/showthread.php?threadid=233130
|
||||
|
||||
gps: ? I should submit an RFC for that one :)
|
||||
|
||||
webcal: (is http: to .ics file)
|
||||
|
||||
data: (but it's dangerous)
|
||||
|
||||
rsync: http://tools.ietf.org/html/rfc5781
|
||||
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ resource(1, "BEOS:FILE_TYPES") message
|
||||
"types" = "application/x-vnd.Be-bookmark",
|
||||
"types" = "text/x-url",
|
||||
"types" = "text/x-webloc",
|
||||
"types" = "application/x-vnd.Be.URL.about",
|
||||
"types" = "application/x-vnd.Be.URL.file",
|
||||
"types" = "application/x-vnd.Be.URL.http",
|
||||
"types" = "application/x-vnd.Be.URL.https",
|
||||
|
||||
Reference in New Issue
Block a user