common.h

Go to the documentation of this file.
00001 ///
00002 /// \file       common.h
00003 ///             General header for the Barry library
00004 ///
00005 
00006 /*
00007     Copyright (C) 2005-2008, Net Direct Inc. (http://www.netdirect.ca/)
00008 
00009     This program is free software; you can redistribute it and/or modify
00010     it under the terms of the GNU General Public License as published by
00011     the Free Software Foundation; either version 2 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018     See the GNU General Public License in the COPYING file at the
00019     root directory of this project for more details.
00020 */
00021 
00022 #ifndef __BARRY_COMMON_H__
00023 #define __BARRY_COMMON_H__
00024 
00025 #include "dll.h"
00026 #include <iostream>
00027 
00028 #define VENDOR_RIM              0x0fca
00029 #define PRODUCT_RIM_BLACKBERRY  0x0001
00030 #define PRODUCT_RIM_PEARL_DUAL  0x0004
00031 #define PRODUCT_RIM_PEARL_8120  0x8004
00032 #define PRODUCT_RIM_PEARL       0x0006
00033 
00034 #define BLACKBERRY_CONFIGURATION        1
00035 #define BLACKBERRY_DB_CLASS             0xff
00036 
00037 // minimum number of password tries remaining at which Barry gives up
00038 // for safety
00039 #define BARRY_MIN_PASSWORD_TRIES        3
00040 #define BARRY_MIN_PASSWORD_TRIES_ASC    "3"
00041 
00042 namespace Barry {
00043 
00044 /// See also the LogLock class.
00045 BXEXPORT void Init(bool data_dump_mode = false, std::ostream *logStream = &std::cout);
00046 
00047 } // namespace Barry
00048 
00049 #endif
00050 

Generated on Wed Sep 24 21:27:31 2008 for Barry by  doxygen 1.5.1