sbIDeviceProperties.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© 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 interface nsIPropertyBag2;
30 interface nsIURI;
31 interface nsIVariant;
32 
38 [scriptable, uuid(80ff297c-1dd2-11b2-bc33-972b6bfe5167)]
40 {
44  void initFriendlyName(in AString aFriendlyName);
45 
49  void initDefaultName(in AString aDefaultName);
50 
54  void initVendorName(in AString aVendorName);
55 
59  void initModelNumber(in nsIVariant aModelNumber);
60 
64  void initSerialNumber(in nsIVariant aSerialNumber);
65 
69  void initFirmwareVersion(in AString aFirmwareVersion);
70 
74  void initDeviceLocation(in nsIURI aDeviceLocationUri);
75 
79  void initDeviceIcon(in nsIURI aDeviceIconUri);
80 
84  void initDeviceProperties(in nsIPropertyBag2 aProperties);
85 
90  void initDone();
91 
92 
98  attribute AString friendlyName;
99 
104  readonly attribute AString defaultName;
105 
109  readonly attribute AString vendorName;
110 
115  readonly attribute nsIVariant modelNumber;
116 
121  readonly attribute nsIVariant serialNumber;
122 
127  readonly attribute AString firmwareVersion;
128 
133  readonly attribute nsIURI uri;
134 
139  readonly attribute nsIURI iconUri;
140 
145  readonly attribute nsIPropertyBag2 properties;
146 
150  attribute boolean hidden;
151 };
void initDeviceLocation(in nsIURI aDeviceLocationUri)
Initialize Device Location for a device.
void initFriendlyName(in AString aFriendlyName)
Initialize Friendly Name property from a device.
void initSerialNumber(in nsIVariant aSerialNumber)
Initialize Serial Number propery for a device.
readonly attribute AString vendorName
attribute AString friendlyName
var uuid
void initDone()
Indicates that the initialization is complete, the initilize functions above will no longer affect th...
void initDeviceIcon(in nsIURI aDeviceIconUri)
Initialize propery for a device.
void initModelNumber(in nsIVariant aModelNumber)
Initialize Model Number propery for a device.
readonly attribute nsIURI iconUri
readonly attribute nsIURI uri
void initVendorName(in AString aVendorName)
Initialize Vendor Name propery for a device.
readonly attribute AString defaultName
void initDeviceProperties(in nsIPropertyBag2 aProperties)
Initialize Device Properties for a device.
attribute boolean hidden
readonly attribute nsIVariant serialNumber
readonly attribute nsIPropertyBag2 properties
readonly attribute AString firmwareVersion
void initDefaultName(in AString aDefaultName)
Initialize Default Name property from a device.
readonly attribute nsIVariant modelNumber
void initFirmwareVersion(in AString aFirmwareVersion)
Initialize Firmware Version property for a device.