Merge lp:~mandel/ubuntuone-windows-installer/fix_xml_warnings_2 into lp:ubuntuone-windows-installer/beta
- fix_xml_warnings_2
- Merge into beta
Proposed by
Manuel de la Peña
Status: | Merged |
---|---|
Approved by: | Rodrigo Moya |
Approved revision: | 30 |
Merged at revision: | 55 |
Proposed branch: | lp:~mandel/ubuntuone-windows-installer/fix_xml_warnings_2 |
Merge into: | lp:ubuntuone-windows-installer/beta |
Prerequisite: | lp:~mandel/ubuntuone-windows-installer/fix_xml_warnings_1 |
Diff against target: |
1269 lines (+471/-311) 30 files modified
src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs (+17/-19) src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs (+17/-19) src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs (+17/-19) src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs (+17/-19) src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs (+17/-19) src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs (+16/-0) src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs (+3/-0) src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs (+21/-0) src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs (+12/-0) src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs (+17/-19) src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs (+33/-19) src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs (+17/-19) src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs (+17/-19) src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs (+17/-19) src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs (+47/-19) src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs (+26/-20) src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs (+17/-20) src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs (+29/-19) src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs (+20/-20) src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs (+17/-19) src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs (+8/-0) src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs (+8/-0) src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs (+5/-0) src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs (+9/-0) src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs (+8/-0) src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs (+4/-0) src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs (+28/-0) src/Canonical.UbuntuOne.Common/Utils/Explorer.cs (+4/-1) src/Canonical.UbuntuOne.Common/Validation/MultiException.cs (+2/-2) src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs (+1/-1) |
To merge this branch: | bzr merge lp:~mandel/ubuntuone-windows-installer/fix_xml_warnings_2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodrigo Moya (community) | Approve | ||
Vincenzo Di Somma (community) | Approve | ||
Review via email: mp+31822@code.launchpad.net |
Commit message
Description of the change
Removes an other 100 warnings related with the xml documentation.
To post a comment you must log in.
- 30. By Manuel de la Peña
-
Merge with parent.
Revision history for this message
Rodrigo Moya (rodrigo-moya) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs' | |||
2 | --- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-07-27 11:57:29 +0000 | |||
3 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-08-09 16:40:24 +0000 | |||
4 | @@ -1,22 +1,20 @@ | |||
24 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
25 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
26 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
27 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
28 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
29 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
30 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
31 | 8 | * as published by the Free Software Foundation. | 8 | // |
32 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
33 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
34 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
35 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
36 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
37 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
38 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
39 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
40 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
22 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
23 | 19 | */ | ||
41 | 20 | using Canonical.UbuntuOne.Client.Notification; | 18 | using Canonical.UbuntuOne.Client.Notification; |
42 | 21 | using NUnit.Framework; | 19 | using NUnit.Framework; |
43 | 22 | 20 | ||
44 | 23 | 21 | ||
45 | === modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs' | |||
46 | --- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs 2010-08-09 16:40:23 +0000 | |||
47 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs 2010-08-09 16:40:24 +0000 | |||
48 | @@ -1,22 +1,20 @@ | |||
68 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
69 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
70 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
71 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
72 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
73 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
74 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
75 | 8 | * as published by the Free Software Foundation. | 8 | // |
76 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
77 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
78 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
79 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
80 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
81 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
82 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
83 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
84 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
66 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
67 | 19 | */ | ||
85 | 20 | using System; | 18 | using System; |
86 | 21 | using System.Collections.Generic; | 19 | using System.Collections.Generic; |
87 | 22 | using Canonical.UbuntuOne.Client.Notification; | 20 | using Canonical.UbuntuOne.Client.Notification; |
88 | 23 | 21 | ||
89 | === modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs' | |||
90 | --- src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-08-09 16:40:23 +0000 | |||
91 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-08-09 16:40:24 +0000 | |||
92 | @@ -1,22 +1,20 @@ | |||
112 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
113 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
114 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
115 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
116 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
117 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
118 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
119 | 8 | * as published by the Free Software Foundation. | 8 | // |
120 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
121 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
122 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
123 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
124 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
125 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
126 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
127 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
128 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
110 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
111 | 19 | */ | ||
129 | 20 | using Canonical.UbuntuOne.Client.Notification; | 18 | using Canonical.UbuntuOne.Client.Notification; |
130 | 21 | using NUnit.Framework; | 19 | using NUnit.Framework; |
131 | 22 | 20 | ||
132 | 23 | 21 | ||
133 | === modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs' | |||
134 | --- src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-07-27 11:57:29 +0000 | |||
135 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-08-09 16:40:24 +0000 | |||
136 | @@ -1,22 +1,20 @@ | |||
156 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
157 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
158 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
159 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
160 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
161 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
162 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
163 | 8 | * as published by the Free Software Foundation. | 8 | // |
164 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
165 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
166 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
167 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
168 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
169 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
170 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
171 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
172 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
154 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
155 | 19 | */ | ||
173 | 20 | using System.Collections.Generic; | 18 | using System.Collections.Generic; |
174 | 21 | using Canonical.UbuntuOne.Client.Notification; | 19 | using Canonical.UbuntuOne.Client.Notification; |
175 | 22 | using NUnit.Framework; | 20 | using NUnit.Framework; |
176 | 23 | 21 | ||
177 | === modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs' | |||
178 | --- src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-07-27 11:57:29 +0000 | |||
179 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-08-09 16:40:24 +0000 | |||
180 | @@ -1,22 +1,20 @@ | |||
200 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
201 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
202 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
203 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
204 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
205 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
206 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
207 | 8 | * as published by the Free Software Foundation. | 8 | // |
208 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
209 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
210 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
211 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
212 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
213 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
214 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
215 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
216 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
198 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
199 | 19 | */ | ||
217 | 20 | using Canonical.UbuntuOne.Client.Notification; | 18 | using Canonical.UbuntuOne.Client.Notification; |
218 | 21 | using NUnit.Framework; | 19 | using NUnit.Framework; |
219 | 22 | 20 | ||
220 | 23 | 21 | ||
221 | === modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs' | |||
222 | --- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-09 16:40:23 +0000 | |||
223 | +++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-09 16:40:24 +0000 | |||
224 | @@ -28,6 +28,9 @@ | |||
225 | 28 | /// </summary> | 28 | /// </summary> |
226 | 29 | public partial class UbuntuOneNotifyIcon : INotificationIconView | 29 | public partial class UbuntuOneNotifyIcon : INotificationIconView |
227 | 30 | { | 30 | { |
228 | 31 | /// <summary> | ||
229 | 32 | /// Initializes a new instance of the UbuntuOneNotifyIcon class. | ||
230 | 33 | /// </summary> | ||
231 | 31 | public UbuntuOneNotifyIcon() | 34 | public UbuntuOneNotifyIcon() |
232 | 32 | { | 35 | { |
233 | 33 | InitializeComponent(); | 36 | InitializeComponent(); |
234 | @@ -35,24 +38,37 @@ | |||
235 | 35 | 38 | ||
236 | 36 | #region Implementation of INotificationIconView | 39 | #region Implementation of INotificationIconView |
237 | 37 | 40 | ||
238 | 41 | /// <summary> | ||
239 | 42 | /// Gets and sets a notification to be shown to the user. | ||
240 | 43 | /// </summary> | ||
241 | 38 | public string Notification | 44 | public string Notification |
242 | 39 | { | 45 | { |
243 | 40 | get { throw new NotImplementedException(); } | 46 | get { throw new NotImplementedException(); } |
244 | 41 | set { throw new NotImplementedException(); } | 47 | set { throw new NotImplementedException(); } |
245 | 42 | } | 48 | } |
246 | 43 | 49 | ||
247 | 50 | /// <summary> | ||
248 | 51 | /// Gets and sets the list of recently modified files. | ||
249 | 52 | /// </summary> | ||
250 | 44 | public IList<string> RecentlyModifiedFiles | 53 | public IList<string> RecentlyModifiedFiles |
251 | 45 | { | 54 | { |
252 | 46 | get { throw new NotImplementedException(); } | 55 | get { throw new NotImplementedException(); } |
253 | 47 | set { throw new NotImplementedException(); } | 56 | set { throw new NotImplementedException(); } |
254 | 48 | } | 57 | } |
255 | 49 | 58 | ||
256 | 59 | /// <summary> | ||
257 | 60 | /// Gets and sets the state od the sync daemon to be displayed. | ||
258 | 61 | /// </summary> | ||
259 | 50 | public string State | 62 | public string State |
260 | 51 | { | 63 | { |
261 | 52 | get { throw new NotImplementedException(); } | 64 | get { throw new NotImplementedException(); } |
262 | 53 | set { throw new NotImplementedException(); } | 65 | set { throw new NotImplementedException(); } |
263 | 54 | } | 66 | } |
264 | 55 | 67 | ||
265 | 68 | /// <summary> | ||
266 | 69 | /// Gets and sets the string with the information of the current operation being | ||
267 | 70 | /// performed. | ||
268 | 71 | /// </summary> | ||
269 | 56 | public string CurrentOperation | 72 | public string CurrentOperation |
270 | 57 | { | 73 | { |
271 | 58 | get { throw new NotImplementedException(); } | 74 | get { throw new NotImplementedException(); } |
272 | 59 | 75 | ||
273 | === modified file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs' | |||
274 | --- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-07-27 15:36:33 +0000 | |||
275 | +++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-08-09 16:40:24 +0000 | |||
276 | @@ -18,6 +18,9 @@ | |||
277 | 18 | /// </summary> | 18 | /// </summary> |
278 | 19 | public partial class PreferencesDialog : Window | 19 | public partial class PreferencesDialog : Window |
279 | 20 | { | 20 | { |
280 | 21 | /// <summary> | ||
281 | 22 | /// Initializes a new instance of the PreferencesDialog class. | ||
282 | 23 | /// </summary> | ||
283 | 21 | public PreferencesDialog() | 24 | public PreferencesDialog() |
284 | 22 | { | 25 | { |
285 | 23 | InitializeComponent(); | 26 | InitializeComponent(); |
286 | 24 | 27 | ||
287 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs' | |||
288 | --- src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs 2010-07-30 07:38:58 +0000 | |||
289 | +++ src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs 2010-08-09 16:40:24 +0000 | |||
290 | @@ -27,41 +27,62 @@ | |||
291 | 27 | /// </summary> | 27 | /// </summary> |
292 | 28 | public partial class DownloadingView : IDownloadingView | 28 | public partial class DownloadingView : IDownloadingView |
293 | 29 | { | 29 | { |
294 | 30 | /// <summary> | ||
295 | 31 | /// Initializes a new instance of the DownloadingView class. | ||
296 | 32 | /// </summary> | ||
297 | 30 | public DownloadingView() | 33 | public DownloadingView() |
298 | 31 | { | 34 | { |
299 | 32 | InitializeComponent(); | 35 | InitializeComponent(); |
300 | 33 | Title = StaticResources.DownloadingDialogTitle; | 36 | Title = StaticResources.DownloadingDialogTitle; |
301 | 34 | } | 37 | } |
302 | 35 | 38 | ||
303 | 39 | /// <summary> | ||
304 | 40 | /// Gets and sets if the close button is enabled. | ||
305 | 41 | /// </summary> | ||
306 | 36 | public bool CloseButtonIsEnabled | 42 | public bool CloseButtonIsEnabled |
307 | 37 | { | 43 | { |
308 | 38 | get { return CloseButton.IsEnabled; } | 44 | get { return CloseButton.IsEnabled; } |
309 | 39 | set { CloseButton.IsEnabled = value; } | 45 | set { CloseButton.IsEnabled = value; } |
310 | 40 | } | 46 | } |
311 | 41 | 47 | ||
312 | 48 | /// <summary> | ||
313 | 49 | /// Gets if the view is visible. | ||
314 | 50 | /// </summary> | ||
315 | 42 | public bool IsShown | 51 | public bool IsShown |
316 | 43 | { | 52 | { |
317 | 44 | get { return IsVisible; } | 53 | get { return IsVisible; } |
318 | 45 | } | 54 | } |
319 | 46 | 55 | ||
320 | 56 | /// <summary> | ||
321 | 57 | /// Gets and sets the downloading message to be displayed. | ||
322 | 58 | /// </summary> | ||
323 | 47 | public string DownloadingMessage | 59 | public string DownloadingMessage |
324 | 48 | { | 60 | { |
325 | 49 | get { return (String)MessageLabel.Content; } | 61 | get { return (String)MessageLabel.Content; } |
326 | 50 | set { MessageLabel.Content = value; } | 62 | set { MessageLabel.Content = value; } |
327 | 51 | } | 63 | } |
328 | 52 | 64 | ||
329 | 65 | /// <summary> | ||
330 | 66 | /// Gets and sets the min value of the progress. | ||
331 | 67 | /// </summary> | ||
332 | 53 | public double MinimumValue | 68 | public double MinimumValue |
333 | 54 | { | 69 | { |
334 | 55 | get { return Progressbar.Minimum; } | 70 | get { return Progressbar.Minimum; } |
335 | 56 | set { Progressbar.Minimum = value; } | 71 | set { Progressbar.Minimum = value; } |
336 | 57 | } | 72 | } |
337 | 58 | 73 | ||
338 | 74 | /// <summary> | ||
339 | 75 | /// Get and sets the max value of the progress. | ||
340 | 76 | /// </summary> | ||
341 | 59 | public double MaximumValue | 77 | public double MaximumValue |
342 | 60 | { | 78 | { |
343 | 61 | get { return Progressbar.Maximum; } | 79 | get { return Progressbar.Maximum; } |
344 | 62 | set { Progressbar.Maximum = value; } | 80 | set { Progressbar.Maximum = value; } |
345 | 63 | } | 81 | } |
346 | 64 | 82 | ||
347 | 83 | /// <summary> | ||
348 | 84 | /// Gets and sets the current progress. | ||
349 | 85 | /// </summary> | ||
350 | 65 | public double Progress | 86 | public double Progress |
351 | 66 | { | 87 | { |
352 | 67 | get { return Progressbar.Value; } | 88 | get { return Progressbar.Value; } |
353 | 68 | 89 | ||
354 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs' | |||
355 | --- src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs 2010-07-30 07:38:58 +0000 | |||
356 | +++ src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs 2010-08-09 16:40:24 +0000 | |||
357 | @@ -27,18 +27,30 @@ | |||
358 | 27 | /// </summary> | 27 | /// </summary> |
359 | 28 | public partial class UpdatingView : IUpdatingView | 28 | public partial class UpdatingView : IUpdatingView |
360 | 29 | { | 29 | { |
361 | 30 | /// <summary> | ||
362 | 31 | /// Initializes a new instance of the UpdatingView class. | ||
363 | 32 | /// </summary> | ||
364 | 30 | public UpdatingView() | 33 | public UpdatingView() |
365 | 31 | { | 34 | { |
366 | 32 | InitializeComponent(); | 35 | InitializeComponent(); |
367 | 33 | } | 36 | } |
368 | 34 | 37 | ||
369 | 38 | /// <summary> | ||
370 | 39 | /// Gets and sets if the view is visible | ||
371 | 40 | /// </summary> | ||
372 | 35 | public bool IsShown | 41 | public bool IsShown |
373 | 36 | { | 42 | { |
374 | 37 | get { return IsVisible; } | 43 | get { return IsVisible; } |
375 | 38 | } | 44 | } |
376 | 39 | 45 | ||
377 | 46 | /// <summary> | ||
378 | 47 | /// Gets and sets if the application is being updated. | ||
379 | 48 | /// </summary> | ||
380 | 40 | public bool IsUpdating { get; set; } | 49 | public bool IsUpdating { get; set; } |
381 | 41 | 50 | ||
382 | 51 | /// <summary> | ||
383 | 52 | /// Gets and sets the text tht tell the user the app is being updated. | ||
384 | 53 | /// </summary> | ||
385 | 42 | public string UpdatingText | 54 | public string UpdatingText |
386 | 43 | { | 55 | { |
387 | 44 | get { return (String) MessageLabel.Content; } | 56 | get { return (String) MessageLabel.Content; } |
388 | 45 | 57 | ||
389 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs' | |||
390 | --- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-09 16:40:23 +0000 | |||
391 | +++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-09 16:40:24 +0000 | |||
392 | @@ -1,22 +1,20 @@ | |||
412 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
413 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
414 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
415 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
416 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
417 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
418 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
419 | 8 | * as published by the Free Software Foundation. | 8 | // |
420 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
421 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
422 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
423 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
424 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
425 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
426 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
427 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
428 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
410 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
411 | 19 | */ | ||
429 | 20 | namespace Canonical.UbuntuOne.Client.Notification | 18 | namespace Canonical.UbuntuOne.Client.Notification |
430 | 21 | { | 19 | { |
431 | 22 | /// <summary> | 20 | /// <summary> |
432 | 23 | 21 | ||
433 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs' | |||
434 | --- src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs 2010-08-09 16:40:23 +0000 | |||
435 | +++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs 2010-08-09 16:40:24 +0000 | |||
436 | @@ -1,34 +1,48 @@ | |||
456 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
457 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
458 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
459 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
460 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
461 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
462 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
463 | 8 | * as published by the Free Software Foundation. | 8 | // |
464 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
465 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
466 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
467 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
468 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
469 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
470 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
471 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
472 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
454 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
455 | 19 | */ | ||
473 | 20 | using System.Collections.Generic; | 18 | using System.Collections.Generic; |
474 | 21 | 19 | ||
475 | 22 | namespace Canonical.UbuntuOne.Client.Notification | 20 | namespace Canonical.UbuntuOne.Client.Notification |
476 | 23 | { | 21 | { |
477 | 22 | /// <summary> | ||
478 | 23 | /// View that represents a notification interface that will be shown in the systray of the desktop. | ||
479 | 24 | /// </summary> | ||
480 | 24 | public interface INotificationIconView | 25 | public interface INotificationIconView |
481 | 25 | { | 26 | { |
482 | 27 | /// <summary> | ||
483 | 28 | /// Gets and sets a notification to be shown to the user. | ||
484 | 29 | /// </summary> | ||
485 | 26 | string Notification { get; set; } | 30 | string Notification { get; set; } |
486 | 27 | 31 | ||
487 | 32 | /// <summary> | ||
488 | 33 | /// Gets and sets the list of recently modified files. | ||
489 | 34 | /// </summary> | ||
490 | 28 | IList<string> RecentlyModifiedFiles { get; set; } | 35 | IList<string> RecentlyModifiedFiles { get; set; } |
491 | 29 | 36 | ||
492 | 37 | /// <summary> | ||
493 | 38 | /// Gets and sets the state od the sync daemon to be displayed. | ||
494 | 39 | /// </summary> | ||
495 | 30 | string State { get; set; } | 40 | string State { get; set; } |
496 | 31 | 41 | ||
497 | 42 | /// <summary> | ||
498 | 43 | /// Gets and sets the string with the information of the current operation being | ||
499 | 44 | /// performed. | ||
500 | 45 | /// </summary> | ||
501 | 32 | string CurrentOperation { get; set; } | 46 | string CurrentOperation { get; set; } |
502 | 33 | } | 47 | } |
503 | 34 | } | 48 | } |
504 | 35 | 49 | ||
505 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs' | |||
506 | --- src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs 2010-08-09 16:40:23 +0000 | |||
507 | +++ src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs 2010-08-09 16:40:24 +0000 | |||
508 | @@ -1,22 +1,20 @@ | |||
528 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
529 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
530 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
531 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
532 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
533 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
534 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
535 | 8 | * as published by the Free Software Foundation. | 8 | // |
536 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
537 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
538 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
539 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
540 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
541 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
542 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
543 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
544 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
526 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
527 | 19 | */ | ||
545 | 20 | namespace Canonical.UbuntuOne.Client.Notification | 18 | namespace Canonical.UbuntuOne.Client.Notification |
546 | 21 | { | 19 | { |
547 | 22 | /// <summary> | 20 | /// <summary> |
548 | 23 | 21 | ||
549 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs' | |||
550 | --- src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs 2010-08-09 16:40:23 +0000 | |||
551 | +++ src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs 2010-08-09 16:40:24 +0000 | |||
552 | @@ -1,22 +1,20 @@ | |||
572 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
573 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
574 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
575 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
576 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
577 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
578 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
579 | 8 | * as published by the Free Software Foundation. | 8 | // |
580 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
581 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
582 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
583 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
584 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
585 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
586 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
587 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
588 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
570 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
571 | 19 | */ | ||
589 | 20 | using System; | 18 | using System; |
590 | 21 | 19 | ||
591 | 22 | namespace Canonical.UbuntuOne.Client.Notification | 20 | namespace Canonical.UbuntuOne.Client.Notification |
592 | 23 | 21 | ||
593 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs' | |||
594 | --- src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-07-27 11:58:32 +0000 | |||
595 | +++ src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-08-09 16:40:24 +0000 | |||
596 | @@ -1,22 +1,20 @@ | |||
616 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
617 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
618 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
619 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
620 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
621 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
622 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
623 | 8 | * as published by the Free Software Foundation. | 8 | // |
624 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
625 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
626 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
627 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
628 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
629 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
630 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
631 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
632 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
614 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
615 | 19 | */ | ||
633 | 20 | using System; | 18 | using System; |
634 | 21 | 19 | ||
635 | 22 | namespace Canonical.UbuntuOne.Client.Notification | 20 | namespace Canonical.UbuntuOne.Client.Notification |
636 | 23 | 21 | ||
637 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs' | |||
638 | --- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-09 16:40:23 +0000 | |||
639 | +++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-09 16:40:24 +0000 | |||
640 | @@ -1,22 +1,20 @@ | |||
660 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
661 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
662 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
663 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
664 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
665 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
666 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
667 | 8 | * as published by the Free Software Foundation. | 8 | // |
668 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
669 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
670 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
671 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
672 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
673 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
674 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
675 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
676 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
658 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
659 | 19 | */ | ||
677 | 20 | using System; | 18 | using System; |
678 | 21 | using Canonical.UbuntuOne.Client.Preferences; | 19 | using Canonical.UbuntuOne.Client.Preferences; |
679 | 22 | using Canonical.UbuntuOne.Common.Aop; | 20 | using Canonical.UbuntuOne.Common.Aop; |
680 | @@ -25,12 +23,24 @@ | |||
681 | 25 | 23 | ||
682 | 26 | namespace Canonical.UbuntuOne.Client.Notification | 24 | namespace Canonical.UbuntuOne.Client.Notification |
683 | 27 | { | 25 | { |
684 | 26 | /// <summary> | ||
685 | 27 | /// Implementation of the INotificationIconPresenter interface that manages a view that is used | ||
686 | 28 | /// to display notifications to the user. | ||
687 | 29 | /// </summary> | ||
688 | 28 | public class NotificationIconPresenter : INotificationIconPresenter | 30 | public class NotificationIconPresenter : INotificationIconPresenter |
689 | 29 | { | 31 | { |
690 | 30 | #region Variables | 32 | #region Variables |
691 | 31 | 33 | ||
692 | 34 | /// <summary> | ||
693 | 35 | /// The url to ebe openened when the user wants to upgrade. | ||
694 | 36 | /// </summary> | ||
695 | 32 | public const string UpgradeUrl = "https://one.ubuntu.com/upgrade"; | 37 | public const string UpgradeUrl = "https://one.ubuntu.com/upgrade"; |
696 | 38 | |||
697 | 39 | /// <summary> | ||
698 | 40 | /// The user to be openened when the user requires help. | ||
699 | 41 | /// </summary> | ||
700 | 33 | public const string HelpUrl = "https://one.ubuntu.com/support/"; | 42 | public const string HelpUrl = "https://one.ubuntu.com/support/"; |
701 | 43 | |||
702 | 34 | private static readonly string SharesLocation = ""; | 44 | private static readonly string SharesLocation = ""; |
703 | 35 | private static readonly string SyncsLocation = ""; | 45 | private static readonly string SyncsLocation = ""; |
704 | 36 | private ISyncDaemonClientNotifier _clientNotifier; | 46 | private ISyncDaemonClientNotifier _clientNotifier; |
705 | @@ -180,11 +190,17 @@ | |||
706 | 180 | 190 | ||
707 | 181 | #region Implementation of INotificationIconPresenter | 191 | #region Implementation of INotificationIconPresenter |
708 | 182 | 192 | ||
709 | 193 | /// <summary> | ||
710 | 194 | /// Opens the Preferences window of Ubuntu One. | ||
711 | 195 | /// </summary> | ||
712 | 183 | public void OpenUbuntuOnePreferences() | 196 | public void OpenUbuntuOnePreferences() |
713 | 184 | { | 197 | { |
714 | 185 | PreferencesDialogPresenter.Show(); | 198 | PreferencesDialogPresenter.Show(); |
715 | 186 | } | 199 | } |
716 | 187 | 200 | ||
717 | 201 | /// <summary> | ||
718 | 202 | /// Opens the explorer with the location of the shares of Ubuntu One. | ||
719 | 203 | /// </summary> | ||
720 | 188 | public void OpenSharesLocation() | 204 | public void OpenSharesLocation() |
721 | 189 | { | 205 | { |
722 | 190 | try | 206 | try |
723 | @@ -201,6 +217,9 @@ | |||
724 | 201 | } | 217 | } |
725 | 202 | } | 218 | } |
726 | 203 | 219 | ||
727 | 220 | /// <summary> | ||
728 | 221 | /// Opens the explorer with the location of the sync folders. | ||
729 | 222 | /// </summary> | ||
730 | 204 | public void OpenSyncsLocation() | 223 | public void OpenSyncsLocation() |
731 | 205 | { | 224 | { |
732 | 206 | try | 225 | try |
733 | @@ -217,16 +236,25 @@ | |||
734 | 217 | } | 236 | } |
735 | 218 | } | 237 | } |
736 | 219 | 238 | ||
737 | 239 | /// <summary> | ||
738 | 240 | /// Opens the location used to provide help to the user. | ||
739 | 241 | /// </summary> | ||
740 | 220 | public void OpenHelp() | 242 | public void OpenHelp() |
741 | 221 | { | 243 | { |
742 | 222 | Webbrowser.LauncWebpage(HelpUrl); | 244 | Webbrowser.LauncWebpage(HelpUrl); |
743 | 223 | } | 245 | } |
744 | 224 | 246 | ||
745 | 247 | /// <summary> | ||
746 | 248 | /// Opens the location used to upgrade the account of the user. | ||
747 | 249 | /// </summary> | ||
748 | 225 | public void OpenUpgradeOption() | 250 | public void OpenUpgradeOption() |
749 | 226 | { | 251 | { |
750 | 227 | Webbrowser.LauncWebpage(UpgradeUrl); | 252 | Webbrowser.LauncWebpage(UpgradeUrl); |
751 | 228 | } | 253 | } |
752 | 229 | 254 | ||
753 | 255 | /// <summary> | ||
754 | 256 | /// Close the client and the daemon. | ||
755 | 257 | /// </summary> | ||
756 | 230 | public void Exit() | 258 | public void Exit() |
757 | 231 | { | 259 | { |
758 | 232 | Application.Exit(); | 260 | Application.Exit(); |
759 | 233 | 261 | ||
760 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs' | |||
761 | --- src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-08-09 16:40:23 +0000 | |||
762 | +++ src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-08-09 16:40:24 +0000 | |||
763 | @@ -1,22 +1,20 @@ | |||
783 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
784 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
785 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
786 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
787 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
788 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
789 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
790 | 8 | * as published by the Free Software Foundation. | 8 | // |
791 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
792 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
793 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
794 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
795 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
796 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
797 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
798 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
799 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
781 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
782 | 19 | */ | ||
800 | 20 | using System; | 18 | using System; |
801 | 21 | 19 | ||
802 | 22 | namespace Canonical.UbuntuOne.Client.Notification | 20 | namespace Canonical.UbuntuOne.Client.Notification |
803 | @@ -26,10 +24,18 @@ | |||
804 | 26 | /// </summary> | 24 | /// </summary> |
805 | 27 | public class OperationCompletenessEventArgs : EventArgs | 25 | public class OperationCompletenessEventArgs : EventArgs |
806 | 28 | { | 26 | { |
808 | 29 | 27 | /// <summary> | |
809 | 28 | /// Enumerator that contains the different units used for the downloads. | ||
810 | 29 | /// </summary> | ||
811 | 30 | public enum SpeedUnitsEnum | 30 | public enum SpeedUnitsEnum |
812 | 31 | { | 31 | { |
813 | 32 | /// <summary> | ||
814 | 33 | /// MB per second. | ||
815 | 34 | /// </summary> | ||
816 | 32 | MB, | 35 | MB, |
817 | 36 | /// <summary> | ||
818 | 37 | /// KB per second. | ||
819 | 38 | /// </summary> | ||
820 | 33 | KB, | 39 | KB, |
821 | 34 | } | 40 | } |
822 | 35 | 41 | ||
823 | 36 | 42 | ||
824 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs' | |||
825 | --- src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-07-27 11:58:32 +0000 | |||
826 | +++ src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-08-09 16:40:24 +0000 | |||
827 | @@ -1,23 +1,20 @@ | |||
848 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
849 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
850 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
851 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
852 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
853 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
854 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
855 | 8 | * as published by the Free Software Foundation. | 8 | // |
856 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
857 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
858 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
859 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
860 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
861 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
862 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
863 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
864 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
845 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
846 | 19 | */ | ||
847 | 20 | |||
865 | 21 | using System; | 18 | using System; |
866 | 22 | using System.Collections.Generic; | 19 | using System.Collections.Generic; |
867 | 23 | 20 | ||
868 | 24 | 21 | ||
869 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs' | |||
870 | --- src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-07-27 11:58:32 +0000 | |||
871 | +++ src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-08-09 16:40:24 +0000 | |||
872 | @@ -1,22 +1,20 @@ | |||
892 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
893 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
894 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
895 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
896 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
897 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
898 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
899 | 8 | * as published by the Free Software Foundation. | 8 | // |
900 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
901 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
902 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
903 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
904 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
905 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
906 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
907 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
908 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
890 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
891 | 19 | */ | ||
909 | 20 | using System; | 18 | using System; |
910 | 21 | 19 | ||
911 | 22 | namespace Canonical.UbuntuOne.Client.Notification | 20 | namespace Canonical.UbuntuOne.Client.Notification |
912 | @@ -31,9 +29,21 @@ | |||
913 | 31 | /// </summary> | 29 | /// </summary> |
914 | 32 | public enum StateEnum | 30 | public enum StateEnum |
915 | 33 | { | 31 | { |
916 | 32 | /// <summary> | ||
917 | 33 | /// The sync daemon is out of sync. | ||
918 | 34 | /// </summary> | ||
919 | 34 | OUT_OF_SYNC, | 35 | OUT_OF_SYNC, |
920 | 36 | /// <summary> | ||
921 | 37 | /// The synd daemong is syncing. | ||
922 | 38 | /// </summary> | ||
923 | 35 | SYNC_IN_PROGRESS, | 39 | SYNC_IN_PROGRESS, |
924 | 40 | /// <summary> | ||
925 | 41 | /// All the files are up to date. | ||
926 | 42 | /// </summary> | ||
927 | 36 | UP_TO_DATE, | 43 | UP_TO_DATE, |
928 | 44 | /// <summary> | ||
929 | 45 | /// The sync daemong is in an error state. | ||
930 | 46 | /// </summary> | ||
931 | 37 | ERROR | 47 | ERROR |
932 | 38 | } | 48 | } |
933 | 39 | 49 | ||
934 | 40 | 50 | ||
935 | === modified file 'src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs' | |||
936 | --- src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs 2010-08-09 16:40:23 +0000 | |||
937 | +++ src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs 2010-08-09 16:40:24 +0000 | |||
938 | @@ -1,23 +1,20 @@ | |||
959 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
960 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
961 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
962 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
963 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
964 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
965 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
966 | 8 | * as published by the Free Software Foundation. | 8 | // |
967 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
968 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
969 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
970 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
971 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
972 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
973 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
974 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
975 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
956 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
957 | 19 | */ | ||
958 | 20 | |||
976 | 21 | namespace Canonical.UbuntuOne.Client.Preferences | 18 | namespace Canonical.UbuntuOne.Client.Preferences |
977 | 22 | { | 19 | { |
978 | 23 | /// <summary> | 20 | /// <summary> |
979 | @@ -25,6 +22,9 @@ | |||
980 | 25 | /// </summary> | 22 | /// </summary> |
981 | 26 | public interface IPreferencesDialogPresenter | 23 | public interface IPreferencesDialogPresenter |
982 | 27 | { | 24 | { |
983 | 25 | /// <summary> | ||
984 | 26 | /// Shows the dialog to the user. | ||
985 | 27 | /// </summary> | ||
986 | 28 | void Show(); | 28 | void Show(); |
987 | 29 | } | 29 | } |
988 | 30 | } | 30 | } |
989 | 31 | 31 | ||
990 | === modified file 'src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs' | |||
991 | --- src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-08-09 16:40:23 +0000 | |||
992 | +++ src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-08-09 16:40:24 +0000 | |||
993 | @@ -1,22 +1,20 @@ | |||
1013 | 1 | /** | 1 | // Copyright 2010 Canonical Ltd. |
1014 | 2 | * Copyright 2010 Canonical Ltd. | 2 | // |
1015 | 3 | * | 3 | // This file is part of UbuntuOne on Windows. |
1016 | 4 | * This file is part of UbuntuOne on Windows. | 4 | // |
1017 | 5 | * | 5 | // UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1018 | 6 | * UbuntuOne on Windows is free software: you can redistribute it and/or modify | 6 | // it under the terms of the GNU Lesser General Public License version |
1019 | 7 | * it under the terms of the GNU Lesser General Public License version | 7 | // as published by the Free Software Foundation. |
1020 | 8 | * as published by the Free Software Foundation. | 8 | // |
1021 | 9 | * | 9 | // Ubuntu One on Windows is distributed in the hope that it will be useful, |
1022 | 10 | * Ubuntu One on Windows is distributed in the hope that it will be useful, | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
1023 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1024 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | // GNU Lesser General Public License for more details. |
1025 | 13 | * GNU Lesser General Public License for more details. | 13 | // |
1026 | 14 | * | 14 | // You should have received a copy of the GNU Lesser General Public License |
1027 | 15 | * You should have received a copy of the GNU Lesser General Public License | 15 | // along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1028 | 16 | * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. | 16 | // |
1029 | 17 | * | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1011 | 18 | * Authors: Manuel de la Peña <manuel.delapena@canonical.com> | ||
1012 | 19 | */ | ||
1030 | 20 | using System; | 18 | using System; |
1031 | 21 | using Canonical.UbuntuOne.Client.Notification; | 19 | using Canonical.UbuntuOne.Client.Notification; |
1032 | 22 | using Canonical.UbuntuOne.Common; | 20 | using Canonical.UbuntuOne.Common; |
1033 | 23 | 21 | ||
1034 | === modified file 'src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs' | |||
1035 | --- src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs 2010-07-26 11:09:17 +0000 | |||
1036 | +++ src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs 2010-08-09 16:40:24 +0000 | |||
1037 | @@ -33,6 +33,14 @@ | |||
1038 | 33 | { | 33 | { |
1039 | 34 | private readonly ILog _logger = LogManager.GetLogger(typeof (DebugLogAfterThrowInterceptor)); | 34 | private readonly ILog _logger = LogManager.GetLogger(typeof (DebugLogAfterThrowInterceptor)); |
1040 | 35 | 35 | ||
1041 | 36 | /// <summary> | ||
1042 | 37 | /// Method that will be executed after an exception has been thrown by the method to which | ||
1043 | 38 | /// the advice was added. | ||
1044 | 39 | /// </summary> | ||
1045 | 40 | /// <param name="method">The method that threw the exception.</param> | ||
1046 | 41 | /// <param name="args">The arguments which were used to call the method.</param> | ||
1047 | 42 | /// <param name="target">The object that is target of the method.</param> | ||
1048 | 43 | /// <param name="ex">The exception thrown by the method execution.</param> | ||
1049 | 36 | public void AfterThrowing(MethodInfo method, object[] args, object target, Exception ex) | 44 | public void AfterThrowing(MethodInfo method, object[] args, object target, Exception ex) |
1050 | 37 | { | 45 | { |
1051 | 38 | if(Logger == null) | 46 | if(Logger == null) |
1052 | 39 | 47 | ||
1053 | === modified file 'src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs' | |||
1054 | --- src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs 2010-07-23 15:47:32 +0000 | |||
1055 | +++ src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs 2010-08-09 16:40:24 +0000 | |||
1056 | @@ -22,6 +22,9 @@ | |||
1057 | 22 | 22 | ||
1058 | 23 | namespace Canonical.UbuntuOne.Common.Container | 23 | namespace Canonical.UbuntuOne.Common.Container |
1059 | 24 | { | 24 | { |
1060 | 25 | /// <summary> | ||
1061 | 26 | /// Exception to be thrown when the IContainer is missing a type implementation. | ||
1062 | 27 | /// </summary> | ||
1063 | 25 | [Serializable] | 28 | [Serializable] |
1064 | 26 | public class UnsatisfiedDependencyException : Exception | 29 | public class UnsatisfiedDependencyException : Exception |
1065 | 27 | { | 30 | { |
1066 | @@ -43,6 +46,11 @@ | |||
1067 | 43 | /// <param name="innerException">The inner exception.</param> | 46 | /// <param name="innerException">The inner exception.</param> |
1068 | 44 | public UnsatisfiedDependencyException(string message, Exception innerException) : base(message, innerException) { } | 47 | public UnsatisfiedDependencyException(string message, Exception innerException) : base(message, innerException) { } |
1069 | 45 | 48 | ||
1070 | 49 | /// <summary> | ||
1071 | 50 | /// Initializes a new instance of the UnsatisfiedDependencyException class with serialized data. | ||
1072 | 51 | /// </summary> | ||
1073 | 52 | /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> | ||
1074 | 53 | /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> | ||
1075 | 46 | protected UnsatisfiedDependencyException(SerializationInfo info, StreamingContext context) | 54 | protected UnsatisfiedDependencyException(SerializationInfo info, StreamingContext context) |
1076 | 47 | : base(info, context) | 55 | : base(info, context) |
1077 | 48 | { | 56 | { |
1078 | 49 | 57 | ||
1079 | === modified file 'src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs' | |||
1080 | --- src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs 2010-07-07 10:41:49 +0000 | |||
1081 | +++ src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs 2010-08-09 16:40:24 +0000 | |||
1082 | @@ -19,7 +19,12 @@ | |||
1083 | 19 | */ | 19 | */ |
1084 | 20 | namespace Canonical.UbuntuOne.Common | 20 | namespace Canonical.UbuntuOne.Common |
1085 | 21 | { | 21 | { |
1086 | 22 | /// <summary> | ||
1087 | 23 | /// Class that provides the information of the Ubuntu One account currently running the | ||
1088 | 24 | /// sync daemon. | ||
1089 | 25 | /// </summary> | ||
1090 | 22 | public class AccountData | 26 | public class AccountData |
1091 | 23 | { | 27 | { |
1092 | 28 | // TODO: Implement, talk with verterok | ||
1093 | 24 | } | 29 | } |
1094 | 25 | } | 30 | } |
1095 | 26 | 31 | ||
1096 | === modified file 'src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs' | |||
1097 | --- src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs 2010-07-07 10:41:49 +0000 | |||
1098 | +++ src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs 2010-08-09 16:40:24 +0000 | |||
1099 | @@ -19,9 +19,18 @@ | |||
1100 | 19 | */ | 19 | */ |
1101 | 20 | namespace Canonical.UbuntuOne.Common | 20 | namespace Canonical.UbuntuOne.Common |
1102 | 21 | { | 21 | { |
1103 | 22 | /// <summary> | ||
1104 | 23 | /// Enumerator that contains the different access levels that a user has to a share. | ||
1105 | 24 | /// </summary> | ||
1106 | 22 | public enum AccessLevel | 25 | public enum AccessLevel |
1107 | 23 | { | 26 | { |
1108 | 27 | /// <summary> | ||
1109 | 28 | /// The user just has read rights. | ||
1110 | 29 | /// </summary> | ||
1111 | 24 | VIEW, | 30 | VIEW, |
1112 | 31 | /// <summary> | ||
1113 | 32 | /// The user has read and write rights. | ||
1114 | 33 | /// </summary> | ||
1115 | 25 | MODIFY | 34 | MODIFY |
1116 | 26 | } | 35 | } |
1117 | 27 | } | 36 | } |
1118 | 28 | 37 | ||
1119 | === modified file 'src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs' | |||
1120 | --- src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs 2010-07-07 10:41:49 +0000 | |||
1121 | +++ src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs 2010-08-09 16:40:24 +0000 | |||
1122 | @@ -19,8 +19,16 @@ | |||
1123 | 19 | */ | 19 | */ |
1124 | 20 | namespace Canonical.UbuntuOne.Common | 20 | namespace Canonical.UbuntuOne.Common |
1125 | 21 | { | 21 | { |
1126 | 22 | /// <summary> | ||
1127 | 23 | /// Interface to be implemented by a factory that can generate process managers | ||
1128 | 24 | /// to be used to manage a process in the system. | ||
1129 | 25 | /// </summary> | ||
1130 | 22 | public interface IProcessManagerFactory | 26 | public interface IProcessManagerFactory |
1131 | 23 | { | 27 | { |
1132 | 28 | /// <summary> | ||
1133 | 29 | /// Returns a new manager that can be used to manage a process. | ||
1134 | 30 | /// </summary> | ||
1135 | 31 | /// <returns>A IProcessManager that can be used to interact with a process.</returns> | ||
1136 | 24 | IProcessManager GetManager(); | 32 | IProcessManager GetManager(); |
1137 | 25 | } | 33 | } |
1138 | 26 | } | 34 | } |
1139 | 27 | 35 | ||
1140 | === modified file 'src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs' | |||
1141 | --- src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs 2010-08-09 16:40:23 +0000 | |||
1142 | +++ src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs 2010-08-09 16:40:24 +0000 | |||
1143 | @@ -22,6 +22,10 @@ | |||
1144 | 22 | 22 | ||
1145 | 23 | namespace Canonical.UbuntuOne.Common | 23 | namespace Canonical.UbuntuOne.Common |
1146 | 24 | { | 24 | { |
1147 | 25 | /// <summary> | ||
1148 | 26 | /// Interface to be implemented by those objects that allow to interact with the data related to | ||
1149 | 27 | /// the sync folders by the Ubuntu One sync daemon. | ||
1150 | 28 | /// </summary> | ||
1151 | 25 | [ServiceContract( | 29 | [ServiceContract( |
1152 | 26 | Name = "SyncFolders", | 30 | Name = "SyncFolders", |
1153 | 27 | Namespace = "http://one.ubuntu.com/syncfolders", | 31 | Namespace = "http://one.ubuntu.com/syncfolders", |
1154 | 28 | 32 | ||
1155 | === modified file 'src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs' | |||
1156 | --- src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs 2010-07-29 16:35:27 +0000 | |||
1157 | +++ src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs 2010-08-09 16:40:24 +0000 | |||
1158 | @@ -30,11 +30,23 @@ | |||
1159 | 30 | #region Variables | 30 | #region Variables |
1160 | 31 | 31 | ||
1161 | 32 | private IDownloadingView _view; | 32 | private IDownloadingView _view; |
1162 | 33 | /// <summary> | ||
1163 | 34 | /// The maximum value to be used in the view related to the percentage of | ||
1164 | 35 | /// update that has been downloaded. | ||
1165 | 36 | /// </summary> | ||
1166 | 33 | public const double MaximumValue = 100; | 37 | public const double MaximumValue = 100; |
1167 | 38 | |||
1168 | 39 | /// <summary> | ||
1169 | 40 | /// The minimum value to be used in the view related to the percentage of | ||
1170 | 41 | /// update that has been downloaded. | ||
1171 | 42 | /// </summary> | ||
1172 | 34 | public const double MinimumValue = 0; | 43 | public const double MinimumValue = 0; |
1173 | 35 | 44 | ||
1174 | 36 | #endregion | 45 | #endregion |
1175 | 37 | 46 | ||
1176 | 47 | /// <summary> | ||
1177 | 48 | /// Gets and sets the view to be used to interact with the user. | ||
1178 | 49 | /// </summary> | ||
1179 | 38 | public IDownloadingView View | 50 | public IDownloadingView View |
1180 | 39 | { | 51 | { |
1181 | 40 | get { return _view; } | 52 | get { return _view; } |
1182 | @@ -55,6 +67,12 @@ | |||
1183 | 55 | } | 67 | } |
1184 | 56 | } | 68 | } |
1185 | 57 | 69 | ||
1186 | 70 | /// <summary> | ||
1187 | 71 | /// Handler to be called when there has been an updated related to the progess of the download | ||
1188 | 72 | /// of the update. | ||
1189 | 73 | /// </summary> | ||
1190 | 74 | /// <param name="sender">The object that sent the event.</param> | ||
1191 | 75 | /// <param name="args">The arguments that provide information regarding the changes in the download.</param> | ||
1192 | 58 | public void DownloadProgressHandler(object sender, DownloadTaskProgressEventArgs args) | 76 | public void DownloadProgressHandler(object sender, DownloadTaskProgressEventArgs args) |
1193 | 59 | { | 77 | { |
1194 | 60 | if(!View.IsShown) | 78 | if(!View.IsShown) |
1195 | @@ -63,6 +81,11 @@ | |||
1196 | 63 | View.Progress = (args.BytesTransferred * MaximumValue) / args.BytesTotal; | 81 | View.Progress = (args.BytesTransferred * MaximumValue) / args.BytesTotal; |
1197 | 64 | } | 82 | } |
1198 | 65 | 83 | ||
1199 | 84 | /// <summary> | ||
1200 | 85 | /// Handler to be called when there has been an error when downloading an update. | ||
1201 | 86 | /// </summary> | ||
1202 | 87 | /// <param name="sender">The object that sent the event.</param> | ||
1203 | 88 | /// <param name="args">The arguments that provide information regarding the error.</param> | ||
1204 | 66 | public void DownloadErrorHandler(object sender, DownloadTaskErrorEventArgs args) | 89 | public void DownloadErrorHandler(object sender, DownloadTaskErrorEventArgs args) |
1205 | 67 | { | 90 | { |
1206 | 68 | View.DownloadingMessage = UpdateResources.DownloadError; | 91 | View.DownloadingMessage = UpdateResources.DownloadError; |
1207 | @@ -70,6 +93,11 @@ | |||
1208 | 70 | View.CloseButtonIsEnabled = true; | 93 | View.CloseButtonIsEnabled = true; |
1209 | 71 | } | 94 | } |
1210 | 72 | 95 | ||
1211 | 96 | /// <summary> | ||
1212 | 97 | /// Handler to be called when the update has been completed. | ||
1213 | 98 | /// </summary> | ||
1214 | 99 | /// <param name="sender">The object that sent the event.</param> | ||
1215 | 100 | /// <param name="e">The arguments that provide more information about the comleted task.</param> | ||
1216 | 73 | public void DownloadUpdateCompleted(object sender, TaskEventArgs e) | 101 | public void DownloadUpdateCompleted(object sender, TaskEventArgs e) |
1217 | 74 | { | 102 | { |
1218 | 75 | View.DownloadingMessage = UpdateResources.DownloadCompleted; | 103 | View.DownloadingMessage = UpdateResources.DownloadCompleted; |
1219 | 76 | 104 | ||
1220 | === modified file 'src/Canonical.UbuntuOne.Common/Utils/Explorer.cs' | |||
1221 | --- src/Canonical.UbuntuOne.Common/Utils/Explorer.cs 2010-08-09 16:40:23 +0000 | |||
1222 | +++ src/Canonical.UbuntuOne.Common/Utils/Explorer.cs 2010-08-09 16:40:24 +0000 | |||
1223 | @@ -22,7 +22,10 @@ | |||
1224 | 22 | 22 | ||
1225 | 23 | namespace Canonical.UbuntuOne.Common.Utils | 23 | namespace Canonical.UbuntuOne.Common.Utils |
1226 | 24 | { | 24 | { |
1228 | 25 | 25 | /// <summary> | |
1229 | 26 | /// Implementation of the IExplorer that allows to interact with the file explorer in | ||
1230 | 27 | /// the system. | ||
1231 | 28 | /// </summary> | ||
1232 | 26 | public class Explorer : IExplorer | 29 | public class Explorer : IExplorer |
1233 | 27 | { | 30 | { |
1234 | 28 | private const string ExplorerProcess = "explorer.exe"; | 31 | private const string ExplorerProcess = "explorer.exe"; |
1235 | 29 | 32 | ||
1236 | === modified file 'src/Canonical.UbuntuOne.Common/Validation/MultiException.cs' | |||
1237 | --- src/Canonical.UbuntuOne.Common/Validation/MultiException.cs 2010-07-07 10:41:49 +0000 | |||
1238 | +++ src/Canonical.UbuntuOne.Common/Validation/MultiException.cs 2010-08-09 16:40:24 +0000 | |||
1239 | @@ -88,7 +88,7 @@ | |||
1240 | 88 | /// Creates an exception with a collection of inner exceptions. | 88 | /// Creates an exception with a collection of inner exceptions. |
1241 | 89 | /// </summary> | 89 | /// </summary> |
1242 | 90 | /// <param name="innerExceptions"> | 90 | /// <param name="innerExceptions"> |
1244 | 91 | /// A <see cref="IEnumerable" /> with the inner exceptions. | 91 | /// A enumerable with the inner exceptions. |
1245 | 92 | /// </param> | 92 | /// </param> |
1246 | 93 | public MultiException(IEnumerable<Exception> innerExceptions) | 93 | public MultiException(IEnumerable<Exception> innerExceptions) |
1247 | 94 | : this(null, innerExceptions) | 94 | : this(null, innerExceptions) |
1248 | @@ -127,7 +127,7 @@ | |||
1249 | 127 | /// A <see cref="System.String"/> with the message of the exception. | 127 | /// A <see cref="System.String"/> with the message of the exception. |
1250 | 128 | /// </param> | 128 | /// </param> |
1251 | 129 | /// <param name="innerExceptions"> | 129 | /// <param name="innerExceptions"> |
1253 | 130 | /// A <see cref="IEnumerable"/> with the inner exceptions. | 130 | /// An enumerable with the inner exceptions. |
1254 | 131 | /// </param> | 131 | /// </param> |
1255 | 132 | public MultiException(string message, IEnumerable<Exception> innerExceptions) | 132 | public MultiException(string message, IEnumerable<Exception> innerExceptions) |
1256 | 133 | : base(message, innerExceptions.FirstOrDefault()) | 133 | : base(message, innerExceptions.FirstOrDefault()) |
1257 | 134 | 134 | ||
1258 | === modified file 'src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs' | |||
1259 | --- src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs 2010-08-09 16:40:23 +0000 | |||
1260 | +++ src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs 2010-08-09 16:40:24 +0000 | |||
1261 | @@ -235,7 +235,7 @@ | |||
1262 | 235 | 235 | ||
1263 | 236 | /// <summary> | 236 | /// <summary> |
1264 | 237 | /// Allows the client to schedule the share and node be next in the | 237 | /// Allows the client to schedule the share and node be next in the |
1266 | 238 | // queue of waiting commands. | 238 | /// queue of waiting commands. |
1267 | 239 | /// </summary> | 239 | /// </summary> |
1268 | 240 | /// <param name="shareId">The unique id that describes the share.</param> | 240 | /// <param name="shareId">The unique id that describes the share.</param> |
1269 | 241 | /// <param name="nodeId">The unique id that describes the node.</param> | 241 | /// <param name="nodeId">The unique id that describes the node.</param> |
Again, good job with the comments!