82 lines
2.4 KiB
C++
82 lines
2.4 KiB
C++
/**
|
|
* Add header files will be imported here.
|
|
* You can import this as a shorthand:
|
|
*
|
|
* #include "../all_headers.hpp"
|
|
*/
|
|
|
|
#ifndef __COMFORTABLE_SWIPE__all_headers_hpp__
|
|
#define __COMFORTABLE_SWIPE__all_headers_hpp__
|
|
|
|
/*
|
|
Comfortable Swipe
|
|
by Rico Tiongson
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
// global defines
|
|
#ifndef __COMFORTABLE_SWIPE__PROGRAM__
|
|
#define __COMFORTABLE_SWIPE__PROGRAM__ "/usr/local/bin/comfortable-swipe"
|
|
#endif /* __COMFORTABLE_SWIPE__PROGRAM__ */
|
|
|
|
#ifndef __COMFORTABLE_SWIPE__CONFIG__
|
|
#define __COMFORTABLE_SWIPE__CONFIG__ "/usr/local/share/comfortable-swipe/comfortable-swipe.conf"
|
|
#endif /* __COMFORTABLE_SWIPE__CONFIG__ */
|
|
|
|
#ifndef COMFORTABLE_SWIPE_VERSION
|
|
#warning COMFORTABLE_SWIPE_VERSION is not defined
|
|
#define COMFORTABLE_SWIPE_VERSION "v(UNKNOWN)"
|
|
#endif /* COMFORTABLE_SWIPE_VERSION */
|
|
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
|
|
extern "C"
|
|
{
|
|
namespace comfortable_swipe
|
|
{
|
|
// driver method
|
|
int driver();
|
|
// this is found in the util/ folder
|
|
namespace util
|
|
{
|
|
const char* autostart_filename();
|
|
constexpr const char* conf_filename();
|
|
std::map<std::string, std::string> read_config_file(const char*);
|
|
}
|
|
// this is found in the service/ folder
|
|
namespace service
|
|
{
|
|
void autostart();
|
|
void buffer();
|
|
void config();
|
|
void debug();
|
|
void help();
|
|
void restart();
|
|
void start();
|
|
void status();
|
|
void stop();
|
|
}
|
|
}
|
|
}
|
|
|
|
// add headers for classes here so it can be imported during include
|
|
#include "gesture/xdo_gesture.h"
|
|
#include "gesture/swipe_gesture.h"
|
|
#include "gesture/keyboard_swipe_gesture.h"
|
|
#include "gesture/mouse_hold_gesture.h"
|
|
|
|
#endif /* __COMFORTABLE_SWIPE__all_headers_hpp__ */
|