Libbarrett
1.2.4
|
00001 /* 00002 Copyright 2011, 2012 Barrett Technology <support@barrett.com> 00003 00004 This file is part of libbarrett. 00005 00006 This version of libbarrett is free software: you can redistribute it 00007 and/or modify it under the terms of the GNU General Public License as 00008 published by the Free Software Foundation, either version 3 of the 00009 License, or (at your option) any later version. 00010 00011 This version of libbarrett is distributed in the hope that it will be 00012 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License along 00017 with this version of libbarrett. If not, see 00018 <http://www.gnu.org/licenses/>. 00019 00020 Further, non-binding information about licensing is available at: 00021 <http://wiki.barrett.com/libbarrett/wiki/LicenseNotes> 00022 */ 00023 00024 /* 00025 * utils.h 00026 * 00027 * Created on: Dec 16, 2011 00028 * Author: dc 00029 */ 00030 00031 #ifndef UTILS_H_ 00032 #define UTILS_H_ 00033 00034 00035 void manageBackups(const char* file, int numBackups = 5); 00036 00037 00038 enum Key { 00039 K_UNKNOWN = -2, 00040 K_NOKEY = -1, 00041 K_TAB = 9, 00042 K_ENTER = 10, 00043 K_ESCAPE = 27, 00044 K_BACKSPACE = 127, 00045 K_UP = 256, 00046 K_DOWN = 257, 00047 K_LEFT = 258, 00048 K_RIGHT = 259 00049 }; 00050 00051 enum Key getKey(); 00052 00053 00054 #endif /* UTILS_H_ */