sbIWindowsAutoPlayService.idl
Go to the documentation of this file.
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 :miv */
3 /*
4 //
5 // BEGIN SONGBIRD GPL
6 //
7 // This file is part of the Songbird web player.
8 //
9 // Copyright(c) 2005-2009 POTI, Inc.
10 // http://songbirdnest.com
11 //
12 // This file may be licensed under the terms of of the
13 // GNU General Public License Version 2 (the "GPL").
14 //
15 // Software distributed under the License is distributed
16 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
17 // express or implied. See the GPL for the specific language
18 // governing rights and limitations.
19 //
20 // You should have received a copy of the GPL along with this
21 // program. If not, go to http://www.gnu.org/licenses/gpl.html
22 // or write to the Free Software Foundation, Inc.,
23 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 // END SONGBIRD GPL
26 //
27 */
28 
29 
30 #include "nsISupports.idl"
31 
46 
47 [scriptable, uuid(bdf4d304-1dd1-11b2-8e21-86d275880563)]
49 {
50  //
51  // AutoPlay actions.
52  //
53 
54  const unsigned long ACTION_MANAGE_VOLUME_DEVICE = 0;
55  const unsigned long ACTION_CD_RIP = 1;
56  const unsigned long ACTION_MANAGE_MTP_DEVICE = 2;
57 
67  in unsigned long aAction);
68 
69 
79  in unsigned long aAction);
80 };
81 
82 
91 interface nsIVariant;
92 
93 [scriptable, function, uuid(7843536a-1dd2-11b2-ac8e-fa37a19126b8)]
95 {
106  boolean handleAction(in unsigned long aAction,
107  in nsIVariant aActionArg);
108 };
109 
110 
111 //
112 // C++ defs.
113 //
114 
115 %{C++
116 #define SB_WINDOWSAUTOPLAYSERVICE_CONTRACTID \
117  "@songbirdnest.com/Songbird/WindowsAutoPlayService;1"
118 %}C++
119 
const unsigned long ACTION_MANAGE_MTP_DEVICE
const unsigned long ACTION_MANAGE_VOLUME_DEVICE
var uuid
function C(H)
void removeActionHandler(in sbIWindowsAutoPlayActionHandler aHandler, in unsigned long aAction)
boolean handleAction(in unsigned long aAction, in nsIVariant aActionArg)
void addActionHandler(in sbIWindowsAutoPlayActionHandler aHandler, in unsigned long aAction)