sbIdentityService.h
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2011 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
30 #ifndef __SBIDENTITY_SERVICE_H__
31 #define __SBIDENTITY_SERVICE_H__
32 
33 #include "sbIIdentityService.h"
34 
35 #include <nsIComponentManager.h>
36 #include <nsIGenericFactory.h>
37 #include <nsCOMArray.h>
38 #include <nsStringAPI.h>
39 #include <sbIMediaItem.h>
40 
41 // DEFINES ====================================================================
42 #define SONGBIRD_IDENTITY_SERVICE_CONTRACTID \
43  "@songbirdnest.com/Songbird/IdentityService;1"
44 #define SONGBIRD_IDENTITY_SERVICE_CLASSNAME \
45  "Songbird Unique Identifier Service"
46 #define SONGBIRD_IDENTITY_SERVICE_CID \
47 { /* 94717ce5-adb7-4661-8044-530c4b4330ce */ \
48  0x94717ce5, 0xadb7, 0x4661, \
49  { 0x80, 0x44, 0x53, 0x0c, 0x4b, 0x43, 0x30, 0xce } \
50 }
51 // CLASSES ====================================================================
53 {
55 NS_DECL_SBIIDENTITYSERVICE
56 public:
57 
59 
60 private:
61  virtual ~sbIdentityService();
62 
72  nsresult GetPropertyStringFor
74  const char * const * aPropsToHash,
75  PRUint32 aPropsToHashLength,
76  nsAString &_retval);
77 
85  nsresult GetPropertyStringForAudio
87  nsAString &_retval);
88 
96  nsresult GetPropertyStringForVideo
98  nsAString &_retval);
99 
100 protected:
101  /* additional members */
102 };
103 #endif // __SBIDENTITY_SERVICE_H__
A service to provide identifiers for mediaitems.
[USER CODE SHOULD NOT REFERENCE THIS CLASS]