summaryrefslogtreecommitdiffstats
path: root/examples/messagingaccounts
diff options
context:
space:
mode:
authorAleksW <qt-info@nokia.com>2010-04-07 16:21:49 +1000
committerAleksW <qt-info@nokia.com>2010-04-07 16:21:49 +1000
commitce7669a0058adb45573b43c2210db362a6695495 (patch)
treea5623f2f8d80d71ddc63e450bdbd2b71203f1bfc /examples/messagingaccounts
parentb69232661d31e9602fbdaea0723de60794f61f98 (diff)
Remove superfluous directory
Diffstat (limited to 'examples/messagingaccounts')
-rw-r--r--examples/messagingaccounts/.gitignore3
-rw-r--r--examples/messagingaccounts/main_messagingaccounts.cpp58
-rw-r--r--examples/messagingaccounts/messagingaccounts.pro37
-rw-r--r--examples/messagingaccounts/messagingaccounts.qrc9
4 files changed, 107 insertions, 0 deletions
diff --git a/examples/messagingaccounts/.gitignore b/examples/messagingaccounts/.gitignore
new file mode 100644
index 00000000..9441ab1a
--- /dev/null
+++ b/examples/messagingaccounts/.gitignore
@@ -0,0 +1,3 @@
+# messagingaccounts binary
+messagingaccounts
+
diff --git a/examples/messagingaccounts/main_messagingaccounts.cpp b/examples/messagingaccounts/main_messagingaccounts.cpp
new file mode 100644
index 00000000..6e9f298f
--- /dev/null
+++ b/examples/messagingaccounts/main_messagingaccounts.cpp
@@ -0,0 +1,58 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the Qt Messaging Framework.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <accountsettings.h>
+#include <QApplication>
+#include <qmailnamespace.h>
+#include <QIcon>
+
+int main(int argc, char** argv)
+{
+ if(QMail::fileLock("messagingsettings-instance.lock") == -1)
+ qFatal("MessagingSettings already running!\n");
+
+ QApplication app(argc, argv);
+ app.setWindowIcon(QIcon(":icon/messagingaccounts"));
+ AccountSettings settings;
+ settings.show();
+ return app.exec();
+}
+
diff --git a/examples/messagingaccounts/messagingaccounts.pro b/examples/messagingaccounts/messagingaccounts.pro
new file mode 100644
index 00000000..a1402d44
--- /dev/null
+++ b/examples/messagingaccounts/messagingaccounts.pro
@@ -0,0 +1,37 @@
+TEMPLATE = app
+TARGET = messagingaccounts
+target.path += $$QMF_INSTALL_ROOT/bin
+CONFIG += qtopiamail messageserver
+
+DEPENDPATH += .
+
+QTMAIL_EXAMPLE=../../qtmail
+
+INCLUDEPATH += . ../../../src/libraries/qtopiamail \
+ ../../../src/libraries/qtopiamail/support \
+ ../../../src/libraries/messageserver \
+ $$QTMAIL_EXAMPLE/app \
+ $$QTMAIL_EXAMPLE/libs/qmfutil
+
+LIBS += -L../../../src/libraries/qtopiamail/build \
+ -L../../../src/libraries/messageserver/build
+
+macx:LIBS += -F../../../src/libraries/qtopiamail/build \
+ -F../../../src/libraries/messageserver/build
+
+HEADERS += $$QTMAIL_EXAMPLE/app/accountsettings.h \
+ $$QTMAIL_EXAMPLE/app/editaccount.h \
+ $$QTMAIL_EXAMPLE/app/mmseditaccount.h \
+ $$QTMAIL_EXAMPLE/app/statusbar.h \
+ $$QTMAIL_EXAMPLE/libs/qmfutil/qtmailnamespace.h
+
+SOURCES += $$QTMAIL_EXAMPLE/app/accountsettings.cpp \
+ $$QTMAIL_EXAMPLE/app/editaccount.cpp \
+ main_messagingaccounts.cpp \
+ $$QTMAIL_EXAMPLE/app/mmseditaccount.cpp \
+ $$QTMAIL_EXAMPLE/app/statusbar.cpp \
+ $$QTMAIL_EXAMPLE/libs/qmfutil/qtmailnamespace.cpp
+
+RESOURCES += messagingaccounts.qrc
+
+include(../../../common.pri)
diff --git a/examples/messagingaccounts/messagingaccounts.qrc b/examples/messagingaccounts/messagingaccounts.qrc
new file mode 100644
index 00000000..95391291
--- /dev/null
+++ b/examples/messagingaccounts/messagingaccounts.qrc
@@ -0,0 +1,9 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource prefix="/icon">
+<file alias="new">../../qtmail/app/pics/icons/14x14/new.png</file>
+<file alias="messagingaccounts">../../qtmail/app/pics/EMail_48.png</file>
+<file alias="add">../../qtmail/app/pics/add.png</file>
+<file alias="erase">../../qtmail/app/pics/eraser.png</file>
+<file alias="settings">../../qtmail/app/pics/configure.png</file>
+</qresource>
+</RCC>