equal
deleted
inserted
replaced
47 void CntServiceProviderOld::fetch(const QString &title, const QString &action, const QString& /*filter*/) |
47 void CntServiceProviderOld::fetch(const QString &title, const QString &action, const QString& /*filter*/) |
48 { |
48 { |
49 CNT_ENTRY |
49 CNT_ENTRY |
50 // Ignore the filter parameter |
50 // Ignore the filter parameter |
51 mCurrentRequestIndex = setCurrentRequestAsync(); |
51 mCurrentRequestIndex = setCurrentRequestAsync(); |
52 mServices.setQuitable(requestInfo().isEmbedded()); |
52 mServices.setQuittable(requestInfo().isEmbedded()); |
53 mServices.multiFetch( title, action, *this ); |
53 mServices.multiFetch( title, action, *this ); |
54 CNT_EXIT |
54 CNT_EXIT |
55 } |
55 } |
56 |
56 |
57 |
57 |
62 { |
62 { |
63 CNT_ENTRY |
63 CNT_ENTRY |
64 // Ignore the filter parameter |
64 // Ignore the filter parameter |
65 // Ignoring fourth argument, because it's not needed. DoFetch() by old contract is only for single-fetching. |
65 // Ignoring fourth argument, because it's not needed. DoFetch() by old contract is only for single-fetching. |
66 mCurrentRequestIndex = setCurrentRequestAsync(); |
66 mCurrentRequestIndex = setCurrentRequestAsync(); |
67 mServices.setQuitable(requestInfo().isEmbedded()); |
67 mServices.setQuittable(requestInfo().isEmbedded()); |
68 mServices.singleFetch( title, action, *this ); |
68 mServices.singleFetch( title, action, *this ); |
69 CNT_EXIT |
69 CNT_EXIT |
70 } |
70 } |
71 |
71 |
72 |
72 |
75 */ |
75 */ |
76 void CntServiceProviderOld::editCreateNew(const QString& definitionName, const QString& value) |
76 void CntServiceProviderOld::editCreateNew(const QString& definitionName, const QString& value) |
77 { |
77 { |
78 CNT_ENTRY |
78 CNT_ENTRY |
79 mCurrentRequestIndex = setCurrentRequestAsync(); |
79 mCurrentRequestIndex = setCurrentRequestAsync(); |
80 mServices.setQuitable(requestInfo().isEmbedded()); |
80 mServices.setQuittable(requestInfo().isEmbedded()); |
81 mServices.editCreateNew( definitionName, value, *this ); |
81 mServices.editCreateNew( definitionName, value, *this, false ); // defaultForOnlineAccountIsImpp = false |
82 CNT_EXIT |
82 CNT_EXIT |
83 } |
83 } |
84 |
84 |
85 void CntServiceProviderOld::editCreateNew(const QString &vCardFile) |
85 void CntServiceProviderOld::editCreateNew(const QString &vCardFile) |
86 { |
86 { |
87 CNT_ENTRY |
87 CNT_ENTRY |
88 mCurrentRequestIndex = setCurrentRequestAsync(); |
88 mCurrentRequestIndex = setCurrentRequestAsync(); |
89 mServices.setQuitable(requestInfo().isEmbedded()); |
89 mServices.setQuittable(requestInfo().isEmbedded()); |
90 mServices.editCreateNewFromVCard( vCardFile, *this ); |
90 mServices.editCreateNewFromVCard( vCardFile, *this ); |
91 CNT_EXIT |
91 CNT_EXIT |
92 } |
92 } |
93 |
93 |
94 |
94 |
97 */ |
97 */ |
98 void CntServiceProviderOld::editUpdateExisting(const QString &definitionName, const QString &value) |
98 void CntServiceProviderOld::editUpdateExisting(const QString &definitionName, const QString &value) |
99 { |
99 { |
100 CNT_ENTRY |
100 CNT_ENTRY |
101 mCurrentRequestIndex = setCurrentRequestAsync(); |
101 mCurrentRequestIndex = setCurrentRequestAsync(); |
102 mServices.setQuitable(requestInfo().isEmbedded()); |
102 mServices.setQuittable(requestInfo().isEmbedded()); |
103 mServices.editUpdateExisting( definitionName, value, *this ); |
103 mServices.editUpdateExisting( definitionName, value, *this, false ); // defaultForOnlineAccountIsImpp = false |
104 CNT_EXIT |
104 CNT_EXIT |
105 } |
105 } |
106 |
106 |
107 |
107 |
108 /*! |
108 /*! |
110 */ |
110 */ |
111 void CntServiceProviderOld::open(int contactId) |
111 void CntServiceProviderOld::open(int contactId) |
112 { |
112 { |
113 CNT_ENTRY |
113 CNT_ENTRY |
114 mCurrentRequestIndex = setCurrentRequestAsync(); |
114 mCurrentRequestIndex = setCurrentRequestAsync(); |
115 mServices.setQuitable(requestInfo().isEmbedded()); |
115 mServices.setQuittable(requestInfo().isEmbedded()); |
116 mServices.launchContactCard( contactId, *this ); |
116 mServices.launchContactCard( contactId, *this ); |
117 CNT_EXIT |
117 CNT_EXIT |
118 } |
118 } |
119 |
119 |
120 /*! |
120 /*! |
122 */ |
122 */ |
123 void CntServiceProviderOld::open(const QString &definitionName, const QString &value) |
123 void CntServiceProviderOld::open(const QString &definitionName, const QString &value) |
124 { |
124 { |
125 CNT_ENTRY |
125 CNT_ENTRY |
126 mCurrentRequestIndex = setCurrentRequestAsync(); |
126 mCurrentRequestIndex = setCurrentRequestAsync(); |
127 mServices.setQuitable(requestInfo().isEmbedded()); |
127 mServices.setQuittable(requestInfo().isEmbedded()); |
128 mServices.launchTemporaryContactCard( definitionName, value, *this ); // definitionName = field type value = actual field value for prefilling editor |
128 mServices.launchTemporaryContactCard( definitionName, value, *this ); // definitionName = field type value = actual field value for prefilling editor |
129 CNT_EXIT |
129 CNT_EXIT |
130 } |
130 } |
131 |
131 |
132 |
132 |
134 { |
134 { |
135 CNT_ENTRY |
135 CNT_ENTRY |
136 connect(this, SIGNAL(returnValueDelivered()), qApp, SLOT(quit())); |
136 connect(this, SIGNAL(returnValueDelivered()), qApp, SLOT(quit())); |
137 if ( mCurrentRequestIndex != 0 ) |
137 if ( mCurrentRequestIndex != 0 ) |
138 { |
138 { |
|
139 CNT_LOG_ARGS("next, completing request.") |
139 const bool success = completeRequest(mCurrentRequestIndex, retValue); |
140 const bool success = completeRequest(mCurrentRequestIndex, retValue); |
140 if ( !success ) |
141 if ( !success ) |
141 { |
142 { |
142 CNT_LOG_ARGS("Failed to complete highway request."); |
143 CNT_LOG_ARGS("Failed to complete highway request."); |
143 } |
144 } |