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
devices
base
src
sbDeviceEventBeforeAddedData.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
#include "sbIDeviceEventBeforeAddedData.h"
26
27
#include <nsCOMPtr.h>
28
#include <sbIDevice.h>
29
30
struct
PRLock;
31
32
class
sbDeviceEventBeforeAddedData
:
public
sbIDeviceEventBeforeAddedData
33
{
34
public
:
35
NS_DECL_ISUPPORTS
36
NS_DECL_SBIDEVICEEVENTBEFOREADDEDDATA
37
38
nsresult
Init
(
sbIDevice
*aDevice);
39
40
static
nsresult
CreateEventBeforeAddedData
(
41
sbIDevice
*aDevice,
42
sbIDeviceEventBeforeAddedData
**aBeforeAddedData);
43
44
protected
:
45
sbDeviceEventBeforeAddedData
();
46
~sbDeviceEventBeforeAddedData
();
47
48
PRLock*
mLock
;
49
50
PRPackedBool
mContinueAddingDevice
;
51
nsCOMPtr<sbIDevice>
mDevice
;
52
};
sbDeviceEventBeforeAddedData::Init
NS_DECL_ISUPPORTS NS_DECL_SBIDEVICEEVENTBEFOREADDEDDATA nsresult Init(sbIDevice *aDevice)
Definition:
sbDeviceEventBeforeAddedData.cpp:50
sbDeviceEventBeforeAddedData::sbDeviceEventBeforeAddedData
sbDeviceEventBeforeAddedData()
sbDeviceEventBeforeAddedData::mContinueAddingDevice
PRPackedBool mContinueAddingDevice
Definition:
sbDeviceEventBeforeAddedData.h:50
sbDeviceEventBeforeAddedData::mDevice
nsCOMPtr< sbIDevice > mDevice
Definition:
sbDeviceEventBeforeAddedData.h:51
sbDeviceEventBeforeAddedData::mLock
PRLock * mLock
Definition:
sbDeviceEventBeforeAddedData.h:48
sbIDeviceEventBeforeAddedData
Definition:
sbIDeviceEventBeforeAddedData.idl:38
sbDeviceEventBeforeAddedData::CreateEventBeforeAddedData
static nsresult CreateEventBeforeAddedData(sbIDevice *aDevice, sbIDeviceEventBeforeAddedData **aBeforeAddedData)
Definition:
sbDeviceEventBeforeAddedData.cpp:63
NS_DECL_ISUPPORTS
NS_DECL_ISUPPORTS
Definition:
sbPlaylistCommandsHelper.cpp:49
sbDeviceEventBeforeAddedData
Definition:
sbDeviceEventBeforeAddedData.h:32
sbDeviceEventBeforeAddedData::~sbDeviceEventBeforeAddedData
~sbDeviceEventBeforeAddedData()
Definition:
sbDeviceEventBeforeAddedData.cpp:42
sbIDevice
Definition:
sbIDevice.idl:80