30 #ifndef __SBPLAYLISTCOMMANDS_HELPER_H__
31 #define __SBPLAYLISTCOMMANDS_HELPER_H__
33 #include "sbIPlaylistCommands.h"
34 #include "sbIPlaylistCommandsHelper.h"
36 #include <nsIComponentManager.h>
37 #include <nsIGenericFactory.h>
40 #define SONGBIRD_PLAYLISTCOMMANDSHELPER_CONTRACTID \
41 "@songbirdnest.com/Songbird/PlaylistCommandsHelper;1"
42 #define SONGBIRD_PLAYLISTCOMMANDSHELPER_CLASSNAME \
43 "Songbird Playlist Commands Manager Simple Component"
44 #define SONGBIRD_PLAYLISTCOMMANDSHELPER_CID \
46 0xada0a2ac, 0x1dd1, 0x11b2, \
47 {0xbb, 0x58, 0xce, 0xfe, 0xff, 0x88, 0x4e, 0xd4} \
53 NS_DECL_SBIPLAYLISTCOMMANDSHELPER
58 static NS_METHOD
RegisterSelf(nsIComponentManager* aCompMgr,
60 const char* aLoaderStr,
62 const nsModuleComponentInfo *aInfo);
67 nsresult AddToServicePane(
const nsAString &aMediaListGUID,
68 const nsAString &aMediaListType,
71 nsresult AddToMediaItemContextMenu(
const nsAString &aMediaListGUID,
72 const nsAString &aMediaListType,
75 nsresult AddToToolbar(
const nsAString &aMediaListGUID,
76 const nsAString &aMediaListType,
79 nsresult AddCommandObject(PRUint16 aTargetFlags,
80 const nsAString &aMediaListGUID,
81 const nsAString &aMediaListType,
84 nsresult SetRemainingFlags(PRUint16 aTargetFlags,
87 nsresult RemoveCommandObject(PRUint16 aTargetFlags,
88 const nsAString &aMediaListGUID,
89 const nsAString &aMediaListType,
92 nsresult GetCommandObject(PRUint16 aTargetFlag,
93 const nsAString &aMediaListGUID,
94 const nsAString &aMediaListType,
95 const nsAString &aCommandId,
99 const nsAString &aCommandId,
105 #endif // __SBPLAYLISTCOMMANDS_HELPER_H__
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
sbPlaylistCommandsHelper()
A helper service to add and remove playlistCommands.
An interface that represents the set of command buttons and context menu items available on a display...