2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-17 20:52:41 +04:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2000-06-21 09:27:29 +04:00
|
|
|
*
|
2004-04-17 20:52:41 +04:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
2000-06-21 09:27:29 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
2000-06-21 09:27:29 +04:00
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-17 20:52:41 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-29 00:14:13 +04:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1999
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
2000-06-21 09:27:29 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-17 20:52:41 +04:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-09-29 00:14:13 +04:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-17 20:52:41 +04:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-29 00:14:13 +04:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-17 20:52:41 +04:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
2000-06-21 09:27:29 +04:00
|
|
|
|
2003-09-26 23:49:23 +04:00
|
|
|
/** @file
|
|
|
|
* This file holds our vocabulary definition for the helper
|
|
|
|
* app data source. The helper app data source contains user specified helper
|
|
|
|
* application override information.
|
|
|
|
*
|
|
|
|
* @see profile/defaults/mimeTypes.rdf for documentation on these properties
|
|
|
|
*/
|
2000-06-21 09:27:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
#define NC_RDF_MIMETYPES NC_NAMESPACE_URI"MIME-Types"
|
|
|
|
// a mime type has the following properties...
|
|
|
|
#define NC_RDF_MIMETYPE NC_NAMESPACE_URI"MIME-Type"
|
|
|
|
#define NC_RDF_DESCRIPTION NC_NAMESPACE_URI"description"
|
|
|
|
#define NC_RDF_VALUE NC_NAMESPACE_URI"value"
|
|
|
|
#define NC_RDF_EDITABLE NC_NAMESPACE_URI"editable"
|
|
|
|
#define NC_RDF_LARGEICON NC_NAMESPACE_URI"largeIcon"
|
|
|
|
#define NC_RDF_SMALLICON NC_NAMESPACE_URI"smallIcon"
|
|
|
|
#define NC_RDF_HANDLER NC_NAMESPACE_URI"handler"
|
|
|
|
#define NC_RDF_FILEEXTENSIONS NC_NAMESPACE_URI"fileExtensions"
|
|
|
|
#define NC_RDF_CHILD NC_NAMESPACE_URI"child"
|
|
|
|
#define NC_RDF_ROOT "NC:HelperAppRoot"
|
|
|
|
#define NC_CONTENT_NODE_PREFIX "urn:mimetype:"
|
2007-07-05 23:31:46 +04:00
|
|
|
#define NC_HANDLER_SUFFIX "handler:"
|
|
|
|
#define NC_EXTERNALAPP_SUFFIX "externalApplication:"
|
|
|
|
|
|
|
|
// for URI schemes. We re-use NC_RDF_HANDLER as an arc from these nodes.
|
|
|
|
#define NC_SCHEME_NODE_PREFIX "urn:scheme:"
|
|
|
|
#define NS_RDF_PROTOCOLSCHEMES NC_NAMESPACE_URI"Protocol-Schemes"
|
2000-06-21 09:27:29 +04:00
|
|
|
|
|
|
|
// File Extensions have file extension properties....
|
|
|
|
#define NC_RDF_FILEEXTENSION NC_NAMESPACE_URI"fileExtension"
|
|
|
|
|
|
|
|
// handler properties
|
|
|
|
#define NC_RDF_SAVETODISK NC_NAMESPACE_URI"saveToDisk"
|
2003-01-12 04:14:35 +03:00
|
|
|
#define NC_RDF_USESYSTEMDEFAULT NC_NAMESPACE_URI"useSystemDefault"
|
2000-06-21 09:27:29 +04:00
|
|
|
#define NC_RDF_HANDLEINTERNAL NC_NAMESPACE_URI"handleInternal"
|
|
|
|
#define NC_RDF_ALWAYSASK NC_NAMESPACE_URI"alwaysAsk"
|
|
|
|
#define NC_RDF_EXTERNALAPPLICATION NC_NAMESPACE_URI"externalApplication"
|
|
|
|
|
|
|
|
// external applications properties....
|
|
|
|
#define NC_RDF_PRETTYNAME NC_NAMESPACE_URI"prettyName"
|
2007-07-05 23:31:46 +04:00
|
|
|
// for local apps, we'll have the path (but not uriTemplate)
|
2000-06-21 09:27:29 +04:00
|
|
|
#define NC_RDF_PATH NC_NAMESPACE_URI"path"
|
2007-07-05 23:31:46 +04:00
|
|
|
// for web apps, we'll have the uriTemplate (but not path)
|
|
|
|
#define NC_RDF_URITEMPLATE NC_NAMESPACE_URI"uriTemplate"
|