lib: added FifoArgs API, for use in passing command line args without command line
[barry/progweb.git] / src / common.h
blob3ed5150213b4aaa9daf7456164f8f19e7ded04c6
1 ///
2 /// \file common.h
3 /// General header for the Barry library
4 ///
6 /*
7 Copyright (C) 2005-2012, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __BARRY_COMMON_H__
23 #define __BARRY_COMMON_H__
25 #include "dll.h"
26 #include <iostream>
28 #define VENDOR_RIM 0x0fca
29 #define PRODUCT_RIM_BLACKBERRY 0x0001
30 #define PRODUCT_RIM_PEARL_DUAL 0x0004
31 #define PRODUCT_RIM_PEARL_FLIP 0x8001 // 8200 series
32 #define PRODUCT_RIM_PEARL_8120 0x8004
33 #define PRODUCT_RIM_PEARL 0x0006
34 #define PRODUCT_RIM_STORM 0x8007
35 #define PRODUCT_RIM_PLAYBOOK_NETWORK 0x8011
36 #define PRODUCT_RIM_PLAYBOOK_STORAGE 0x8020
38 #define BLACKBERRY_INTERFACE 0
39 #define BLACKBERRY_CONFIGURATION 1
40 #define BLACKBERRY_MASS_STORAGE_CLASS 8
41 #define BLACKBERRY_DB_CLASS 0xff
43 #define IPRODUCT_RIM_HANDHELD 2
44 #define IPRODUCT_RIM_MASS_STORAGE 4
45 #define IPRODUCT_RIM_COMPOSITE 5
47 // minimum number of password tries remaining at which Barry gives up
48 // for safety
49 #define BARRY_MIN_PASSWORD_TRIES 3
50 #define BARRY_MIN_PASSWORD_TRIES_ASC "3"
52 #define BLACKBERRY_CHARSET "WINDOWS-1252"
54 #define BARRY_FIFO_NAME "/tmp/barry_fifo_args"
56 namespace Barry {
58 /// See also the LogLock class.
59 BXEXPORT void Init(bool data_dump_mode = false, std::ostream *logStream = &std::cout);
60 BXEXPORT void Verbose(bool data_dump_mode = true);
61 BXEXPORT bool IsVerbose();
63 } // namespace Barry
65 #endif