25 #ifndef sbSongkickDBService_h_
26 #define sbSongkickDBService_h_
28 #include <ISongkick.h>
30 #include <sbIDatabaseQuery.h>
32 #include <nsAutoPtr.h>
33 #include <nsStringAPI.h>
36 #include <nsIComponentManager.h>
37 #include <nsIGenericFactory.h>
39 #include <nsIObserver.h>
56 NS_DECL_SBPISONGKICKDBSERVICE
59 static NS_METHOD
RegisterSelf(nsIComponentManager* aCompMgr,
61 const char* aLoaderStr,
63 const nsModuleComponentInfo *aInfo);
77 nsRefPtr<sbSongkickDBInfo> mDBInfo;
80 #define SONGBIRD_SONGKICKDBSERVICE_CONTRACTID \
81 "@songbirdnest.com/songkick/dbservice;1"
82 #define SONGBIRD_SONGKICKDBSERVICE_CLASSNAME \
84 #define SONGBIRD_SONGKICKDBSERVICE_CID \
85 {0xe81479c8, 0x1dd1, 0x11b2, {0xa9, 0xa1, 0xae, 0x97, 0x1f, 0x22, 0xf7, 0xfc}}
99 NS_DECL_SBISONGKICKCONCERTINFO
101 nsresult
Init(
const nsAString & aArtistname,
102 const nsAString & aArtistURL,
103 const nsAString & aID,
104 const nsAString & aTS,
105 const nsAString & aVenue,
106 const nsAString & aCity,
107 const nsAString & aTitle,
108 const nsAString & aURL,
109 const nsAString & aVenueURL,
110 const nsAString & aTickets,
111 nsIArray *aArtistsConcertInfo,
112 const nsAString & aLibartist);
138 NS_DECL_SBISONGKICKARTISTCONCERTINFO
140 nsresult
Init(
const nsAString & aArtistName,
141 const nsAString & aArtistURL);
144 nsString mArtistName;
157 NS_DECL_SBISONGKICKPROPERTY
160 const nsAString & aID,
161 const nsAString & aKey);
169 #endif // sbSongkickDBService_h_
virtual ~sbSongkickProperty()
NS_DECL_ISUPPORTS NS_DECL_SBISONGKICKPROPERTY nsresult Init(const nsAString &aName, const nsAString &aID, const nsAString &aKey)
nsresult GetDatabaseQuery(sbIDatabaseQuery **aOutDBQuery)
NS_DECL_ISUPPORTS NS_DECL_SBISONGKICKARTISTCONCERTINFO nsresult Init(const nsAString &aArtistName, const nsAString &aArtistURL)
sbSongkickArtistConcertInfo()
virtual ~sbSongkickConcertInfo()
nsCOMPtr< nsIArray > mArtistConcertInfoArray
NS_DECL_ISUPPORTS NS_DECL_SBPISONGKICKDBSERVICE static NS_DECL_NSIOBSERVER NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
PRLock * mQueryRunningLock
An object responsible for executing SQL queries on the database.
NS_DECL_ISUPPORTS NS_DECL_SBISONGKICKCONCERTINFO nsresult Init(const nsAString &aArtistname, const nsAString &aArtistURL, const nsAString &aID, const nsAString &aTS, const nsAString &aVenue, const nsAString &aCity, const nsAString &aTitle, const nsAString &aURL, const nsAString &aVenueURL, const nsAString &aTickets, nsIArray *aArtistsConcertInfo, const nsAString &aLibartist)
virtual ~sbSongkickDBService()
virtual ~sbSongkickArtistConcertInfo()