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
moz
image
src
sbImageParser.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 __SB_IMAGEPARSER_H__
26
#define __SB_IMAGEPARSER_H__
27
28
//------------------------------------------------------------------------------
29
//------------------------------------------------------------------------------
30
//
31
// Songbird image parser.
32
//
33
//------------------------------------------------------------------------------
34
//------------------------------------------------------------------------------
35
41
// Songbird imports.
42
#include <sbIImageParser.h>
43
44
// Mozilla imports.
45
#include <nsCOMPtr.h>
46
#include <nsStringAPI.h>
47
#include <nsIURI.h>
48
49
54
class
sbImageParser
:
public
sbIImageParser
55
{
56
//----------------------------------------------------------------------------
57
//
58
// Public interface.
59
//
60
//----------------------------------------------------------------------------
61
62
public
:
63
64
//
65
// Inherited interfaces.
66
//
67
68
NS_DECL_ISUPPORTS
69
NS_DECL_SBIIMAGEPARSER
70
71
72
//
73
// Songbird image parser services.
74
//
75
76
sbImageParser
();
77
78
virtual
~sbImageParser
();
79
80
//----------------------------------------------------------------------------
81
//
82
// Private interface.
83
//
84
//----------------------------------------------------------------------------
85
86
private
:
87
88
nsresult GetIcon(PRUint32 imageIndex,
89
PRUint8*
data
,
90
PRUint32 dataSize,
91
nsAString& iconString);
92
93
};
94
95
96
//
97
// Songbird image parser component defs.
98
//
99
100
// contract ID defined in sbIImageParser.idl
101
#define SONGBIRD_IMAGEPARSER_CLASSNAME "Songbird Image Parser"
102
#define SONGBIRD_IMAGEPARSER_CID \
103
/* {39dd2e7c-1dd2-11b2-b8c2-b50253bd2e17} */
\
104
/* {fa7ec5bd-7cab-4a63-a970-7bc4e83ee891} */
\
105
{ \
106
0x39dd2e7c, \
107
0x1dd2, \
108
0x11b2, \
109
{0xb8, 0xc2, 0xb5, 0x02, 0x53, 0xbd, 0x2e, 0x17 } \
110
}
111
112
#endif // __SB_IMAGEPARSER_H__
113
sbIImageParser
Definition:
sbIImageParser.idl:39
sbImageParser
Definition:
sbImageParser.h:54
sbImageParser::~sbImageParser
virtual ~sbImageParser()
Definition:
sbImageParser.cpp:211
NS_DECL_ISUPPORTS
NS_DECL_ISUPPORTS
Definition:
sbPlaylistCommandsHelper.cpp:49
sbImageParser::sbImageParser
NS_DECL_ISUPPORTS NS_DECL_SBIIMAGEPARSER sbImageParser()
Definition:
sbImageParser.cpp:207
data
observe data
Definition:
FeedWriter.js:1329