Warning, /pim/kube/views/inboxcrusher/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright (C) 2018 Christian Mollekopf, <mollekopf@kolabsys.com> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License along 0015 * with this program; if not, write to the Free Software Foundation, Inc., 0016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 import QtQuick 2.7 0020 import QtQuick.Controls 2.0 0021 import QtQuick.Window 2.0 0022 0023 import org.kube.framework 1.0 as Kube 0024 import org.kube.test 1.0 0025 import "qml" 0026 0027 ApplicationWindow { 0028 id: app 0029 height: Screen.desktopAvailableHeight * 0.8 0030 width: Screen.desktopAvailableWidth * 0.8 0031 0032 Component.onCompleted: { 0033 var initialState = { 0034 accounts: [{ 0035 id: "account1", 0036 name: "Test Account" 0037 }], 0038 identities: [{ 0039 account: "account1", 0040 name: "Test Identity", 0041 address: "identity@example.org" 0042 }], 0043 resources: [{ 0044 id: "resource1", 0045 account: "account1", 0046 type: "dummy" 0047 }, 0048 { 0049 id: "resource2", 0050 account: "account1", 0051 type: "mailtransport" 0052 }], 0053 folders: [{ 0054 id: "folder1", 0055 resource: "resource1", 0056 name: "Folder 1", 0057 specialpurpose: ["inbox"], 0058 mails: [{ 0059 resource: "resource1", 0060 messageId: "<msg1@test.com>", 0061 date: "2017-07-24T15:46:29", 0062 subject: "subject1", 0063 body: "body", 0064 to: ["to@example.org"], 0065 cc: ["cc@example.org"], 0066 bcc: ["bcc@example.org"], 0067 }, 0068 { 0069 resource: "resource1", 0070 inReplyTo: "<msg1@test.com>", 0071 date: "2017-07-24T16:46:29", 0072 subject: "subject2", 0073 body: "body2", 0074 to: ["to@example.org"], 0075 }, 0076 { 0077 resource: "resource1", 0078 date: "2017-07-24T18:46:29", 0079 subject: "subject4", 0080 body: "body4", 0081 to: ["to@example.org"], 0082 }, 0083 ] 0084 }], 0085 } 0086 TestStore.setup(initialState) 0087 } 0088 0089 View { 0090 anchors.fill: parent 0091 } 0092 }