sbMediaExportDefines.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 sbMediaExportDefines_h_
26 #define sbMediaExportDefines_h_
27 
28 #include <prlog.h>
29 #include <nsStringAPI.h>
30 #include <nsAppDirectoryServiceDefs.h>
31 #include <list>
32 #include <set>
33 
34 typedef std::list<nsString> sbStringList;
35 typedef sbStringList::const_iterator sbStringListIter;
36 
37 typedef std::set<nsString> sbStringSet;
38 typedef sbStringSet::const_iterator sbStringSetIter;
39 
40 //------------------------------------------------------------------------------
41 // Import/Export preference constants
42 
43 #define PREF_EXPORT_TRACKS \
44  "songbird.library_exporter.export_tracks"
45 #define PREF_EXPORT_PLAYLISTS \
46  "songbird.library_exporter.export_playlists"
47 #define PREF_EXPORT_SMARTPLAYLISTS \
48  "songbird.library_exporter.export_smartplaylists"
49 #define PREF_EXPORT_STARTAGENT \
50  "songbird.library_exporter.start_agent"
51 
52 //------------------------------------------------------------------------------
53 // Misc constants
54 
55 const PRUint32 LISTENER_NOTIFY_ITEM_DELTA = 10;
56 
57 //------------------------------------------------------------------------------
58 // Task file constants
59 
60 //
61 // NOTE: When changing these values, please reflect the changes in the unittest!
62 //
63 #define TASKFILE_NAME "songbird_export.task"
64 #define TASKFILE_SCHEMAVERSION "2"
65 #define TASKFILE_SCHEMAVERSION_HEADER "schema-version"
66 #define TASKFILE_ADDEDMEDIALISTS_HEADER "added-medialists"
67 #define TASKFILE_REMOVEDMEDIALISTS_HEADER "removed-medialists"
68 #define TASKFILE_ADDEDMEDIAITEMS_HEADER "added-mediaitems"
69 #define TASKFILE_UPDATEDMEDIAITEMS_HEADER "updated-mediaitems"
70 #define TASKFILE_UPDATEDSMARTPLAYLIST_HEADER "updated-smartplaylist"
71 #define SHUTDOWN_NAME "songbird_export.shutdown"
72 
73 // Sentinel value used in task file to indicate items added to the main library
74 // If you change this make sure you update it in:
75 // tools/itunesagent/macosx/sbiTunesAgentMacProcessor.h
76 // tools/itunesagent/windows/sbiTunesLibrary.h
77 #define SONGBIRD_MAIN_LIBRARY_NAME "#####SONGBIRD_MAIN_LIBRRAY#####"
78 
79 //------------------------------------------------------------------------------
80 // Media export service XPCOM info
81 
82 #define SONGBIRD_MEDIAEXPORTSERVICE_CID \
83 { /* 7DD185B9-F91E-473D-82DC-65060802D091 */ \
84  0x7DD185B9, \
85  0xF91E, \
86  0x473D, \
87  {0x82, 0xDC, 0x65, 0x06, 0x08, 0x02, 0xD0, 0x91} \
88 }
89 
90 #endif // sbMediaExportDefines_h_
91 
sbStringSet::const_iterator sbStringSetIter
sbStringList::const_iterator sbStringListIter
const PRUint32 LISTENER_NOTIFY_ITEM_DELTA
std::set< nsString > sbStringSet
std::list< nsString > sbStringList