2 * Copyright (C) 2008 David Greaves
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 #ifndef SHOPPER_SHOPPER_H
18 #define SHOPPER_SHOPPER_H
22 // Default location of shopping lists
23 #define HOME_DIR "/home/user/"
24 #define DEFAULT_LIST "ShoppingList.xml"
28 #define _(String) gettext (String)
29 #define gettext_noop(String) String
30 #define N_(String) gettext_noop (String)
35 // Define a << handler for QString
36 std::basic_ostream
<char>& operator<<(std::basic_ostream
<char>& os
, const
39 #define _MSG(tag) do { \
40 std::cerr << tag << " " << __PRETTY_FUNCTION__ << "\n"; \
43 #define _MESSAGE(tag, ...) do { \
44 std::cerr << tag << " :" << __FILE__ <<":"<< __LINE__ \
45 << " (" << __PRETTY_FUNCTION__ << ") " \
46 << __VA_ARGS__ << "\n"; \
50 #define DEBUG(...) _MESSAGE("DEBUG", __VA_ARGS__)
51 #define _ENTER _MSG("ENTER")
52 #define _LEAVE _MSG("LEAVE")