sbDirectoryProvider.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-2009 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 
25 #ifndef SB_DIRECTORY_PROVIDER_H__
26 #define SB_DIRECTORY_PROVIDER_H__
27 
28 #include <nsIDirectoryService.h>
29 
30 #define NS_WIN_COMMON_DOCUMENTS "CmDocs"
31 #define NS_WIN_COMMON_PICTURES "CmPics"
32 #define NS_WIN_COMMON_MUSIC "CmMusic"
33 #define NS_WIN_COMMON_VIDEO "CmVideo"
34 #define NS_WIN_DOCUMENTS "Docs"
35 #define NS_WIN_PICTURES "Pics"
36 #define NS_WIN_MUSIC "Music"
37 #define NS_WIN_VIDEO "Video"
38 #define NS_WIN_DISCBURNING "DiscBurning"
39 
46 class sbDirectoryProvider : public nsIDirectoryServiceProvider
47 {
48 public:
50  NS_DECL_NSIDIRECTORYSERVICEPROVIDER
51 
53 
54  nsresult Init();
55 
56 private:
57  ~sbDirectoryProvider();
58 
59 protected:
60 };
61 
62 #define SONGBIRD_DIRECTORY_PROVIDER_CLASSNAME "sbDirectoryProvider"
63 #define SONGBIRD_DIRECTORY_PROVIDER_CID \
64  /* {d1d8f5b0-c207-11de-8a39-0800200c9a66} */ \
65  { 0xd1d8f5b0, 0xc207, 0x11de, \
66  { 0x8a, 0x39, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 } \
67  }
68 #define SONGBIRD_DIRECTORY_PROVIDER_CONTRACTID \
69  "@songbirdnest.com/moz/directory/provider;1"
70 
71 #endif // SB_DIRECTORY_PROVIDER_H__
NS_DECL_ISUPPORTS NS_DECL_NSIDIRECTORYSERVICEPROVIDER sbDirectoryProvider()