Add ipp: and lpr: as supported uri schemes for the Printer pref, and the ArgsReceived() hook with a TODO to handle them. It should use it to prefill the add printer dialog.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-10-28 14:50:05 +00:00
parent 7bc3564aa8
commit 53612087c4
3 changed files with 17 additions and 0 deletions

View File

@ -57,3 +57,13 @@ PrintersApp::MessageReceived(BMessage* msg)
BApplication::MessageReceived(msg);
}
}
void
PrintersApp::ArgvReceived(int32 argc, char** argv)
{
for (int i; i < argc; i++) {
// TODO: show a pre-filled add printer dialog here
}
}

View File

@ -22,6 +22,7 @@ public:
PrintersApp();
void ReadyToRun();
void MessageReceived(BMessage* msg);
void ArgvReceived(int32 argc, char** argv);
};
#endif // _PRINTERS_H

View File

@ -18,6 +18,12 @@ resource app_version {
long_info = "Printers ©2001-2010 Haiku"
};
resource(1, "BEOS:FILE_TYPES") message
{
"types" = "application/x-vnd.Be.URL.ipp",
"types" = "application/x-vnd.Be.URL.lpr"
};
resource vector_icon {
$"6E6369660B050002001602B76E71BBF8593D1210B8A7674742A04ABEFB00AEFF"
$"E1053802001603373333B9333339333337333348E54F4B555400FFBFE5FF9B02"