include/CalendarLog.h

00001 /*
00002  * @file CalendarLog.h
00003  * This file is part of Maemo calendar.
00004  * It is the header file for ALL class.
00005  *
00006  * Copyright (C) 2008 Nokia Corporation. All rights reserved.
00007  *
00008  * Contact: Biris Ilias <ilias.biris@nokia.com>
00009  *
00010  * This software, including documentation, is protected by copyright 
00011  * controlled by Nokia Corporation. All rights are reserved. Copying, 
00012  * including reproducing, storing, adapting or translating, any or all
00013  * of this material requires the prior written consent of Nokia Corporation.
00014  * This material also contains confidential information which may not be
00015  * disclosed to others without the prior written consent of Nokia.
00016  */
00017 #ifndef __CALENDAR_SUPPORT_H__
00018 #define __CALENDAR_SUPPORT_H_
00019 
00020 
00021 
00022 #undef DEBUG_LEVEL_1 
00023 
00024 
00025 //#define NO_DEBUG_MESSAGES_PLEASE
00026 
00027 #ifndef NO_DEBUG_MESSAGES_PLEASE
00028 #ifdef DEBUG_LEVEL_1
00029 #    define CAL_DEBUG_LOG(a...) ULOG_DEBUG_F(a)
00030 #  else
00031 #    define CAL_DEBUG_LOG(fmtstr, args...) \
00032       (printf("CALENDAR" ":%s: " fmtstr "\n", __func__, ##args))
00033 #  endif
00034 #else
00035 #    define CAL_DEBUG_LOG(a...) {;}
00036 #endif
00037 
00038 #ifdef DEBUG_LEVEL_2
00039 
00040 #define CAL_LOG(ARG...) ULOG_DEBUG_F(ARG)
00041 
00042 #else
00043 
00044 #define CAL_LOG(ARG...)
00045 
00046 #endif
00047 
00048 #endif

Generated on Tue Feb 24 16:21:31 2009 for calendar-backend by  doxygen 1.5.1