~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Kunal Parmar
  • Date: 2015-06-04 12:58:33 UTC
  • Revision ID: pkunal.parmar@gmail.com-20150604125833-h7fcfgzgv9igitoe
ImportĀ Ical

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import Ubuntu.Components 1.1
20
20
import Ubuntu.Components.Popups 1.0
21
21
import QtOrganizer 5.0
 
22
import Ubuntu.Content 0.1
22
23
 
23
24
import "dateExt.js" as DateExt
24
25
 
95
96
    footerColor: "#ECECEC"
96
97
    anchorToKeyboard: true
97
98
 
98
 
 
99
99
    PageStack {
100
100
        id: pageStack
101
101
 
141
141
            id: collectionFilter
142
142
        }
143
143
 
 
144
        Connections {
 
145
            target: ContentHub
 
146
 
 
147
            onImportRequested: {
 
148
                if (transfer.state === ContentHub.ContentTransfer.Charged) {
 
149
                    for(var i=0; i < transfer.items.length; i++) {
 
150
                        var url = transfer.items[i].url;
 
151
                        print(url);
 
152
                        eventModel.importItems(url)
 
153
                    }
 
154
                }
 
155
            }
 
156
        }
 
157
 
144
158
        EventListModel{
145
159
            id: eventModel
146
160