sbIDeviceStatus.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 
31 #include "nsISupports.idl"
32 
33 interface sbIMediaItem;
34 interface sbIMediaList;
35 
43 [scriptable, uuid(a50eb732-08e5-4bc4-9389-e03173e79a7f)]
45 
46  // Import export transfer direction
47  const unsigned long EXPORT = 1;
48  const unsigned long IMPORT = 2;
53  attribute unsigned long currentState;
54 
60  attribute unsigned long currentSubState;
61 
65  attribute AString stateMessage;
66 
70  attribute AString currentOperation;
71 
75  attribute double progress;
76 
80  attribute PRInt64 workItemProgress;
81 
85  attribute PRInt32 workItemType;
86 
90  attribute PRInt64 workItemProgressEndCount;
91 
96 
106  readonly attribute PRUint32 elapsedTime;
107 
112 
116  attribute boolean isNewBatch;
117 
121  void init(in AString aDeviceID);
122 };
attribute AString currentOperation
void init(in AString aDeviceID)
Initialize the DeviceStatus component for a device.
attribute AString stateMessage
attribute PRInt32 workItemType
var uuid
A brief description of the contents of this interface.
readonly attribute PRUint32 elapsedTime
The time elapsed in milliseconds since currentState was last at STATE_IDLE.
attribute double progress
attribute unsigned long currentSubState
The current sub state of the device, copying could be a sub state of the syncing state.
attribute PRInt64 workItemProgress
const unsigned long IMPORT
Interface that defines a single item of media in the system.
attribute sbIMediaItem mediaItem
attribute sbIMediaList mediaList
attribute unsigned long currentState
The current overall state of the device.
const unsigned long EXPORT
attribute boolean isNewBatch
attribute PRInt64 workItemProgressEndCount