sbWatchFolderDefines.h
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2009 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
27 #ifndef sbWatchFolderDefines_h_
28 #define sbWatchFolderDefines_h_
29 
30 #include <prlog.h>
31 
32 
33 //------------------------------------------------------------------------------
34 // Watch folder prefs
35 
36 #define PREF_WATCHFOLDER_ROOT "songbird.watch_folder."
37 #define PREF_WATCHFOLDER_ENABLE "songbird.watch_folder.enable"
38 #define PREF_WATCHFOLDER_PATH "songbird.watch_folder.path"
39 #define PREF_WATCHFOLDER_SESSIONGUID "songbird.watch_folder.sessionguid"
40 
41 //------------------------------------------------------------------------------
42 // Timer delays
43 
44 #define STARTUP_TIMER_DELAY 3000
45 #define FLUSH_FS_WATCHER_DELAY 1000
46 #define CHANGE_DELAY_TIMER_DELAY 30000
47 #define EVENT_PUMP_TIMER_DELAY 1000
48 
49 //------------------------------------------------------------------------------
50 // PRLogging module
51 // To log this module, set the following environment variable:
52 // NSPR_LOG_MODULES=sbWatchFoldersComponent:5
53 
54 #ifdef PR_LOGGING
55 extern PRLogModuleInfo* gWatchFoldersLog;
56 #define TRACE(args) PR_LOG(gWatchFoldersLog, PR_LOG_DEBUG, args)
57 #define LOG(args) PR_LOG(gWatchFoldersLog, PR_LOG_WARN, args)
58 #else
59 #define TRACE(args) /* nothing */
60 #define LOG(args) /* nothing */
61 #endif /* PR_LOGGING */
62 #ifdef __GNUC__
63 #define __FUNCTION__ __PRETTY_FUNCTION__
64 #endif /* __GNUC__ */
65 
66 #endif // sbWatchFolderDefines_h_
67