sbIMediacoreError.idl
Go to the documentation of this file.
1 /*
2  //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25  */
26 
27 #include "nsISupports.idl"
28 
29 [scriptable, uuid(ef15b3dd-bccc-4e1b-8c4d-3ef8d63bfd0d)]
31 {
32  const unsigned long UNINITIALIZED = 0;
33  // A general error which doesn't fit in any other category.
34  const unsigned long FAILED = 1;
35 
36  // General file access errors, reading, writing, etc.
37 
38  // Source file was not found.
39  const unsigned long SB_RESOURCE_NOT_FOUND = 10;
40  // Unable to read from or write to a RESOURCE.
41  const unsigned long SB_RESOURCE_READ = 11;
42  const unsigned long SB_RESOURCE_WRITE = 12;
43  // Unable to open a RESOURCE in read, write or both modes.
44  const unsigned long SB_RESOURCE_OPEN_READ = 13;
45  const unsigned long SB_RESOURCE_OPEN_WRITE = 14;
46  const unsigned long SB_RESOURCE_OPEN_READ_WRITE = 15;
47  // Unable to close the RESOURCE.
48  const unsigned long SB_RESOURCE_CLOSE = 16;
49  // Unable to seek in the RESOURCE (could be truncated)
50  const unsigned long SB_RESOURCE_SEEK = 17;
51  // Unable to write to destination due to no space left.
52  const unsigned long SB_RESOURCE_NO_SPACE_LEFT = 18;
53 
54  // Errors with the actual stream contents, decoders, encoders, etc.
55 
56  // Unable to determine the type of the media
57  const unsigned long SB_STREAM_TYPE_NOT_FOUND = 51;
58  // We do not handle this type of media
59  const unsigned long SB_STREAM_WRONG_TYPE = 52;
60  // We do not have a codec to decode/encode this media.
61  const unsigned long SB_STREAM_CODEC_NOT_FOUND = 53;
62  // Unable to decode the media.
63  const unsigned long SB_STREAM_DECODE = 54;
64  // Unable to encode the media.
65  const unsigned long SB_STREAM_ENCODE = 55;
66  // The media is DRM protected.
67  const unsigned long SB_STREAM_DRM_PROTECTED = 56;
68  // Other failures
69  const unsigned long SB_STREAM_FAILURE = 57;
70 
74  readonly attribute unsigned long code;
75 
79  readonly attribute AString message;
80 };
readonly attribute AString message
Error message (human readable string, localized, preferably).
const unsigned long SB_RESOURCE_OPEN_READ
const unsigned long SB_STREAM_DECODE
const unsigned long SB_RESOURCE_OPEN_WRITE
const unsigned long FAILED
const unsigned long SB_RESOURCE_NO_SPACE_LEFT
var uuid
const unsigned long SB_STREAM_FAILURE
const unsigned long SB_STREAM_CODEC_NOT_FOUND
const unsigned long SB_STREAM_WRONG_TYPE
const unsigned long SB_STREAM_DRM_PROTECTED
const unsigned long SB_RESOURCE_CLOSE
const unsigned long SB_RESOURCE_OPEN_READ_WRITE
const unsigned long SB_RESOURCE_SEEK
const unsigned long SB_STREAM_ENCODE
const unsigned long SB_RESOURCE_READ
const unsigned long SB_STREAM_TYPE_NOT_FOUND
const unsigned long SB_RESOURCE_NOT_FOUND
const unsigned long UNINITIALIZED
const unsigned long SB_RESOURCE_WRITE
readonly attribute unsigned long code
Error code.