aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/main.cpp
diff options
context:
space:
mode:
authorItay Grudev <itay@grudev.com>2016-08-10 02:43:30 +0100
committerItay Grudev <itay@grudev.com>2016-08-10 03:42:46 +0100
commit6f585973dc2989d1a8e9fb8e443e78a3de7845d0 (patch)
tree8ebfc753c37cb35e60f2046580db230f1f0b1e5a /examples/basic/main.cpp
parentSingleApplication v3.0a (diff)
downloadsingleapplication-6f585973dc2989d1a8e9fb8e443e78a3de7845d0.tar.xz
Added a basic usage example
Diffstat (limited to 'examples/basic/main.cpp')
-rwxr-xr-xexamples/basic/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/basic/main.cpp b/examples/basic/main.cpp
new file mode 100755
index 0000000..4787d1c
--- /dev/null
+++ b/examples/basic/main.cpp
@@ -0,0 +1,9 @@
+#include <SingleApplication.h>
+
+int main(int argc, char *argv[])
+{
+ // Allow secondary instances
+ SingleApplication app( argc, argv );
+
+ return app.exec();
+}