Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
components
mediacore
base
public
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)]
30
interface
sbIMediacoreError
:
nsISupports
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
};
sbIMediacoreError::message
readonly attribute AString message
Error message (human readable string, localized, preferably).
Definition:
sbIMediacoreError.idl:79
sbIMediacoreError::SB_RESOURCE_OPEN_READ
const unsigned long SB_RESOURCE_OPEN_READ
Definition:
sbIMediacoreError.idl:44
sbIMediacoreError::SB_STREAM_DECODE
const unsigned long SB_STREAM_DECODE
Definition:
sbIMediacoreError.idl:63
sbIMediacoreError::SB_RESOURCE_OPEN_WRITE
const unsigned long SB_RESOURCE_OPEN_WRITE
Definition:
sbIMediacoreError.idl:45
sbIMediacoreError::FAILED
const unsigned long FAILED
Definition:
sbIMediacoreError.idl:34
sbIMediacoreError::SB_RESOURCE_NO_SPACE_LEFT
const unsigned long SB_RESOURCE_NO_SPACE_LEFT
Definition:
sbIMediacoreError.idl:52
uuid
var uuid
Definition:
jquery-1.2.6.min.js:18
sbIMediacoreError::SB_STREAM_FAILURE
const unsigned long SB_STREAM_FAILURE
Definition:
sbIMediacoreError.idl:69
sbIMediacoreError::SB_STREAM_CODEC_NOT_FOUND
const unsigned long SB_STREAM_CODEC_NOT_FOUND
Definition:
sbIMediacoreError.idl:61
sbIMediacoreError::SB_STREAM_WRONG_TYPE
const unsigned long SB_STREAM_WRONG_TYPE
Definition:
sbIMediacoreError.idl:59
sbIMediacoreError::SB_STREAM_DRM_PROTECTED
const unsigned long SB_STREAM_DRM_PROTECTED
Definition:
sbIMediacoreError.idl:67
sbIMediacoreError::SB_RESOURCE_CLOSE
const unsigned long SB_RESOURCE_CLOSE
Definition:
sbIMediacoreError.idl:48
sbIMediacoreError::SB_RESOURCE_OPEN_READ_WRITE
const unsigned long SB_RESOURCE_OPEN_READ_WRITE
Definition:
sbIMediacoreError.idl:46
sbIMediacoreError
Definition:
sbIMediacoreError.idl:30
sbIMediacoreError::SB_RESOURCE_SEEK
const unsigned long SB_RESOURCE_SEEK
Definition:
sbIMediacoreError.idl:50
sbIMediacoreError::SB_STREAM_ENCODE
const unsigned long SB_STREAM_ENCODE
Definition:
sbIMediacoreError.idl:65
sbIMediacoreError::SB_RESOURCE_READ
const unsigned long SB_RESOURCE_READ
Definition:
sbIMediacoreError.idl:41
sbIMediacoreError::SB_STREAM_TYPE_NOT_FOUND
const unsigned long SB_STREAM_TYPE_NOT_FOUND
Definition:
sbIMediacoreError.idl:57
sbIMediacoreError::SB_RESOURCE_NOT_FOUND
const unsigned long SB_RESOURCE_NOT_FOUND
Definition:
sbIMediacoreError.idl:39
sbIMediacoreError::UNINITIALIZED
const unsigned long UNINITIALIZED
Definition:
sbIMediacoreError.idl:32
sbIMediacoreError::SB_RESOURCE_WRITE
const unsigned long SB_RESOURCE_WRITE
Definition:
sbIMediacoreError.idl:42
nsISupports
nsISupports
Definition:
sbRemoteIndexedMediaItem.cpp:61
sbIMediacoreError::code
readonly attribute unsigned long code
Error code.
Definition:
sbIMediacoreError.idl:74