Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-01-22 22:16:34 +0300
committerJanek Bevendorff <janek@jbev.net>2017-01-22 22:16:34 +0300
commit8a3ac7a26e7d6e2355dc1eb4829bdce96ded2a27 (patch)
tree27bac207383af356056bf861b7acaa89c808d020 /src/autotype/mac/AppKit.h
parente19559fe81a777dd54b83fddeb4667b3285997e3 (diff)
parent8878d7c5dcd439a850cf72d6bb461b0c7a0bdc31 (diff)
Release 2.1.02.1.0
Diffstat (limited to 'src/autotype/mac/AppKit.h')
-rw-r--r--src/autotype/mac/AppKit.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/autotype/mac/AppKit.h b/src/autotype/mac/AppKit.h
new file mode 100644
index 000000000..114038d63
--- /dev/null
+++ b/src/autotype/mac/AppKit.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2016 Lennart Glauer <mail@lennart-glauer.de>
+ *
+ * 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 or (at your option)
+ * version 3 of the License.
+ *
+ * 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/>.
+ */
+
+#ifndef KEEPASSX_APPKIT_H
+#define KEEPASSX_APPKIT_H
+
+#include <unistd.h>
+
+extern "C" {
+
+class AppKit
+{
+public:
+ AppKit();
+ ~AppKit();
+
+ pid_t lastActiveProcessId();
+ pid_t activeProcessId();
+ pid_t ownProcessId();
+ bool activateProcess(pid_t pid);
+
+private:
+ void *self;
+};
+
+} // extern "C"
+
+#endif // KEEPASSX_APPKIT_H