sbTranscodeError.h
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2010 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
25 #ifndef SBTRANSCODEERROR_H_
26 #define SBTRANSCODEERROR_H_
27 
28 #include <nsIScriptError.h>
29 #include <nsISupportsPrimitives.h>
30 
31 #include "sbITranscodeError.h"
32 
33 #include <nsAutoLock.h>
34 #include <nsCOMPtr.h>
35 #include <nsStringGlue.h>
36 
38  public nsIScriptError,
39  public nsISupportsString
40 {
41 public:
43  NS_DECL_NSICONSOLEMESSAGE
44  NS_DECL_NSISCRIPTERROR
45  NS_DECL_NSISUPPORTSSTRING
46  NS_DECL_NSISUPPORTSPRIMITIVE
47  NS_DECL_SBITRANSCODEERROR
48 
50 
51 private:
52  ~sbTranscodeError();
53 
54 protected:
55  PRLock *mLock;
56  nsString mMessageWithItem;
58  nsString mDetails;
59  PRUint32 mSeverity;
60  nsString mSrcUri;
61  nsCOMPtr<sbIMediaItem> mSrcItem;
62  nsString mDestUri;
63  nsCOMPtr<sbIMediaItem> mDestItem;
64 };
65 
66 #define SONGBIRD_TRANSCODEERROR_CLASSNAME \
67  "Songbird Transcode Error"
68 #define SONGBIRD_TRANSCODEERROR_CID \
69 { /* {9B0CDBF9-E4FA-4a5e-9E8A-C87AB37AA187} */ \
70  0x9b0cdbf9, \
71  0xe4fa, \
72  0x4a5e, \
73  { 0x9e, 0x8a, 0xc8, 0x7a, 0xb3, 0x7a, 0xa1, 0x87 } \
74 }
75 
76 #endif /* SBTRANSCODEERROR_H_ */
nsString mMessageWithItem
nsString mMessageWithoutItem
nsCOMPtr< sbIMediaItem > mDestItem
nsCOMPtr< sbIMediaItem > mSrcItem
NS_DECL_ISUPPORTS NS_DECL_NSICONSOLEMESSAGE NS_DECL_NSISCRIPTERROR NS_DECL_NSISUPPORTSSTRING NS_DECL_NSISUPPORTSPRIMITIVE NS_DECL_SBITRANSCODEERROR sbTranscodeError()
const nsISupportsString