aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-06 20:44:49 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-06 20:44:49 +0000
commit062a3cdec94cb4394bc93d6e3b5205981fb25cb0 (patch)
tree510a6b6f39edb882b3aad03eb6cd4272f1339ba9
parentdisable richtext pasting (diff)
downloadgpg4usb-062a3cdec94cb4394bc93d6e3b5205981fb25cb0.tar.gz
gpg4usb-062a3cdec94cb4394bc93d6e3b5205981fb25cb0.zip
add class for constants
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@670 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--gpgconstants.cpp31
-rw-r--r--gpgconstants.h38
2 files changed, 69 insertions, 0 deletions
diff --git a/gpgconstants.cpp b/gpgconstants.cpp
new file mode 100644
index 0000000..0d3306a
--- /dev/null
+++ b/gpgconstants.cpp
@@ -0,0 +1,31 @@
+/*
+ * gpgconstants.cpp
+ *
+ * Copyright 2008 gpg4usb-team <[email protected]>
+ *
+ * This file is part of gpg4usb.
+ *
+ * Gpg4usb 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.
+ *
+ * Gpg4usb 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 gpg4usb. If not, see <http://www.gnu.org/licenses/>
+ */
+
+#include "gpgconstants.h"
+#include <QString>
+
+const char* GpgConstants::PGP_CRYPT_BEGIN = "-----BEGIN PGP MESSAGE-----";
+const char* GpgConstants::PGP_CRYPT_END = "-----END PGP MESSAGE-----";
+const char* GpgConstants::PGP_SIGNED_BEGIN = "-----BEGIN PGP SIGNED MESSAGE-----";
+const char* GpgConstants::PGP_SIGNED_END = "-----END PGP SIGNATURE-----";
+const char* GpgConstants::PGP_SIGNATURE_BEGIN = "-----BEGIN PGP SIGNATURE-----";
+const char* GpgConstants::PGP_SIGNATURE_END = "-----END PGP SIGNATURE-----";
+
diff --git a/gpgconstants.h b/gpgconstants.h
new file mode 100644
index 0000000..4b1df2f
--- /dev/null
+++ b/gpgconstants.h
@@ -0,0 +1,38 @@
+/*
+ * gpgconstants.h
+ *
+ * Copyright 2008 gpg4usb-team <[email protected]>
+ *
+ * This file is part of gpg4usb.
+ *
+ * Gpg4usb 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.
+ *
+ * Gpg4usb 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 gpg4usb. If not, see <http://www.gnu.org/licenses/>
+ */
+
+#ifndef GPGCONSTANTS_H
+#define GPGCONSTANTS_H
+
+class QString;
+
+class GpgConstants
+{
+public:
+ static const char* PGP_CRYPT_BEGIN;
+ static const char* PGP_CRYPT_END;
+ static const char* PGP_SIGNED_BEGIN;
+ static const char* PGP_SIGNED_END;
+ static const char* PGP_SIGNATURE_BEGIN;
+ static const char* PGP_SIGNATURE_END;
+};
+
+#endif // GPGCONSTANTS_H