1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
/**************************** resource.h *******************************
Header file that contains program #defines. It used to be that we kept
all program update and version information in this single file. Now
we've moved a lot of that to txt files inside the /text directory which
are compiled in as a resource. This seems to result in a faster
compile, but we now have manage information in two locations.
Copyright (C) 2013-2023
by: Andrew J. Bibb
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
***********************************************************************/
#ifndef RESOURCE_H
#define RESOURCE_H
///////////////////////////////// Program Values ///////////////////////
//
// Program Info (may be visible, but don't mark for tranalation)
#define VERSION "2023.03.14-1"
#define RELEASE_DATE "14 March 2023"
#define COPYRIGHT_DATE "2013-2023"
// Program Values:
// QApplication (not user visible)
// QSettings (visible in filesystem only)
// System Logging (visible in system logs only)
#define LONG_NAME "CMST - Connman System Tray"
#define ORG "cmst"
#define APP "cmst"
#define LOG_NAME "CMST"
// Program Values - Misc. (not user visible)
#define SOCKET_NAME "cmst_single_app_socket"
#define INTERNAL_THEME "CMST_Icon_Theme"
#define IPT_REQ_LOG_PATH "/tmp/cmst"
#define IPT_REQ_LOG_FILE "input_request.log"
//////////////////////////// CMST Namespace/////////////////////////////
// Used for enum's local to this program
namespace CMST
{
enum {
// errors
No_Errors = 0x00,
Err_No_DBus = (1 << 0), // Can't find DBus
Err_Invalid_Con_Iface = (1 << 1), // Invalid interface
Err_Properties = (1 << 2), // There was an error reading connman.Manager.GetProperties
Err_Technologies = (1 << 3), // There was an error reading connman.Manager.GetTechnologies
Err_Services = (1 << 4), // There was an error reading connman.Manager.GetServices
Err_Invalid_VPN_Iface = (1 << 5), // Invalid interface
// provisioning editor
ProvEd_No_Selection = 0x00,
ProvEd_File_Read = (1 << 0),
ProvEd_File_Delete = (1 << 1),
ProvEd_File_Write = (1 << 2),
// VPN provisioning editor
VPNProvEd_No_Selection = 0x00,
VPNProvEd_File_Read = (1 << 0),
VPNProvEd_File_Delete = (1 << 1),
VPNProvEd_File_Write = (1 << 2),
// validating dialog validator input
ValDialog_None = 0x00,
ValDialog_IPv4 = 0x01,
ValDialog_nmask4 = 0x02,
ValDialog_IPv6 = 0x03,
ValDialog_MAC = 0x04,
ValDialog_46 = 0x05,
ValDialog_Hex = 0x06,
ValDialog_Int = 0x07,
ValDialog_Dom = 0x08,
ValDialog_Word = 0x09,
ValDialog_min1ch = 0x0a,
ValDialog_min8ch = 0x0b,
// ValDialog_46d = 0x0c,
ValDialog_IPv4cidr = 0x0d,
ValDialog_IPv6cidr = 0x0e,
ValDialog_46cidr = 0x0f,
ValDialog_networks = 0x10,
}; // enum
} // namespace CMST
#endif
|