diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-05-24 21:28:50 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-05-24 21:28:50 +0000 |
commit | ac55ad3f3c54876a0db3e40fff688cd6ea9bbe73 (patch) | |
tree | df506d149d7addfa3b72656846e41cea2e1e9bc8 /protocols/MinecraftDynmap/src/constants.h | |
parent | 16e765a9e03ef4ee99cbf4c03b06272eb3ebd398 (diff) |
Add first working version of new MinecraftDynmap protocol
git-svn-id: http://svn.miranda-ng.org/main/trunk@13819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MinecraftDynmap/src/constants.h')
-rw-r--r-- | protocols/MinecraftDynmap/src/constants.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/protocols/MinecraftDynmap/src/constants.h b/protocols/MinecraftDynmap/src/constants.h new file mode 100644 index 0000000000..44dd3816ab --- /dev/null +++ b/protocols/MinecraftDynmap/src/constants.h @@ -0,0 +1,46 @@ +/* + +Minecraft Dynmap plugin for Miranda Instant Messenger +_____________________________________________ + +Copyright © 2015 Robert Pösel + +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 2 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/>. + +*/ + +#pragma once + +// Product management +#define MINECRAFTDYNMAP_NAME "Mincraft Dynmap" + +// Limits +#define MINECRAFTDYNMAP_TIMEOUTS_LIMIT 6 +// This is just guessed some wise limit +#define MINECRAFTDYNMAP_MESSAGE_LIMIT 256 +#define MINECRAFTDYNMAP_MESSAGE_LIMIT_TEXT "256" + +#define MINECRAFTDYNMAP_QUESTION_MIN_LENGTH 10 + +// Request types +#define MINECRAFTDYNMAP_REQUEST_HOME 100 // getting server homepage +#define MINECRAFTDYNMAP_REQUEST_CONFIGURATION 101 // getting server configuration +#define MINECRAFTDYNMAP_REQUEST_EVENTS 102 // receiving events +#define MINECRAFTDYNMAP_REQUEST_MESSAGE 103 // sending messages + +// DB settings +#define MINECRAFTDYNMAP_KEY_TIMEOUTS_LIMIT "TimeoutsLimit" // [HIDDEN] + +#define MINECRAFTDYNMAP_KEY_NAME "Nick" +#define MINECRAFTDYNMAP_KEY_SERVER "Server" |