Merge lp:~mandel/ubuntuone-windows-installer/fix_xml_warnings_2 into lp:ubuntuone-windows-installer/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
Reviewer Review Type Date Requested Status
Rodrigo Moya (community) Approve
Vincenzo Di Somma (community) Approve
Review via email: mp+31822@code.launchpad.net

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
Vincenzo Di Somma (vds) wrote :

Again, good job with the comments!

review: Approve
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
=== modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-07-27 11:57:29 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;18using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;19using NUnit.Framework;
2220
2321
=== modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationPresenterFixture.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
21using System.Collections.Generic;19using System.Collections.Generic;
22using Canonical.UbuntuOne.Client.Notification;20using Canonical.UbuntuOne.Client.Notification;
2321
=== modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;18using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;19using NUnit.Framework;
2220
2321
=== modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-07-27 11:57:29 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System.Collections.Generic;18using System.Collections.Generic;
21using Canonical.UbuntuOne.Client.Notification;19using Canonical.UbuntuOne.Client.Notification;
22using NUnit.Framework;20using NUnit.Framework;
2321
=== modified file 'src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-07-27 11:57:29 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;18using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;19using NUnit.Framework;
2220
2321
=== modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-09 16:40:24 +0000
@@ -28,6 +28,9 @@
28 /// </summary>28 /// </summary>
29 public partial class UbuntuOneNotifyIcon : INotificationIconView29 public partial class UbuntuOneNotifyIcon : INotificationIconView
30 {30 {
31 /// <summary>
32 /// Initializes a new instance of the UbuntuOneNotifyIcon class.
33 /// </summary>
31 public UbuntuOneNotifyIcon()34 public UbuntuOneNotifyIcon()
32 {35 {
33 InitializeComponent();36 InitializeComponent();
@@ -35,24 +38,37 @@
3538
36 #region Implementation of INotificationIconView39 #region Implementation of INotificationIconView
3740
41 /// <summary>
42 /// Gets and sets a notification to be shown to the user.
43 /// </summary>
38 public string Notification44 public string Notification
39 {45 {
40 get { throw new NotImplementedException(); }46 get { throw new NotImplementedException(); }
41 set { throw new NotImplementedException(); }47 set { throw new NotImplementedException(); }
42 }48 }
4349
50 /// <summary>
51 /// Gets and sets the list of recently modified files.
52 /// </summary>
44 public IList<string> RecentlyModifiedFiles53 public IList<string> RecentlyModifiedFiles
45 {54 {
46 get { throw new NotImplementedException(); }55 get { throw new NotImplementedException(); }
47 set { throw new NotImplementedException(); }56 set { throw new NotImplementedException(); }
48 }57 }
4958
59 /// <summary>
60 /// Gets and sets the state od the sync daemon to be displayed.
61 /// </summary>
50 public string State62 public string State
51 {63 {
52 get { throw new NotImplementedException(); }64 get { throw new NotImplementedException(); }
53 set { throw new NotImplementedException(); }65 set { throw new NotImplementedException(); }
54 }66 }
5567
68 /// <summary>
69 /// Gets and sets the string with the information of the current operation being
70 /// performed.
71 /// </summary>
56 public string CurrentOperation72 public string CurrentOperation
57 {73 {
58 get { throw new NotImplementedException(); }74 get { throw new NotImplementedException(); }
5975
=== modified file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-07-27 15:36:33 +0000
+++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-08-09 16:40:24 +0000
@@ -18,6 +18,9 @@
18 /// </summary>18 /// </summary>
19 public partial class PreferencesDialog : Window19 public partial class PreferencesDialog : Window
20 {20 {
21 /// <summary>
22 /// Initializes a new instance of the PreferencesDialog class.
23 /// </summary>
21 public PreferencesDialog()24 public PreferencesDialog()
22 {25 {
23 InitializeComponent();26 InitializeComponent();
2427
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs 2010-07-30 07:38:58 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Update/DownloadingView.xaml.cs 2010-08-09 16:40:24 +0000
@@ -27,41 +27,62 @@
27 /// </summary>27 /// </summary>
28 public partial class DownloadingView : IDownloadingView28 public partial class DownloadingView : IDownloadingView
29 {29 {
30 /// <summary>
31 /// Initializes a new instance of the DownloadingView class.
32 /// </summary>
30 public DownloadingView()33 public DownloadingView()
31 {34 {
32 InitializeComponent();35 InitializeComponent();
33 Title = StaticResources.DownloadingDialogTitle;36 Title = StaticResources.DownloadingDialogTitle;
34 }37 }
3538
39 /// <summary>
40 /// Gets and sets if the close button is enabled.
41 /// </summary>
36 public bool CloseButtonIsEnabled42 public bool CloseButtonIsEnabled
37 {43 {
38 get { return CloseButton.IsEnabled; }44 get { return CloseButton.IsEnabled; }
39 set { CloseButton.IsEnabled = value; }45 set { CloseButton.IsEnabled = value; }
40 }46 }
4147
48 /// <summary>
49 /// Gets if the view is visible.
50 /// </summary>
42 public bool IsShown51 public bool IsShown
43 {52 {
44 get { return IsVisible; }53 get { return IsVisible; }
45 }54 }
4655
56 /// <summary>
57 /// Gets and sets the downloading message to be displayed.
58 /// </summary>
47 public string DownloadingMessage59 public string DownloadingMessage
48 {60 {
49 get { return (String)MessageLabel.Content; }61 get { return (String)MessageLabel.Content; }
50 set { MessageLabel.Content = value; }62 set { MessageLabel.Content = value; }
51 }63 }
5264
65 /// <summary>
66 /// Gets and sets the min value of the progress.
67 /// </summary>
53 public double MinimumValue68 public double MinimumValue
54 {69 {
55 get { return Progressbar.Minimum; }70 get { return Progressbar.Minimum; }
56 set { Progressbar.Minimum = value; }71 set { Progressbar.Minimum = value; }
57 }72 }
5873
74 /// <summary>
75 /// Get and sets the max value of the progress.
76 /// </summary>
59 public double MaximumValue77 public double MaximumValue
60 {78 {
61 get { return Progressbar.Maximum; }79 get { return Progressbar.Maximum; }
62 set { Progressbar.Maximum = value; }80 set { Progressbar.Maximum = value; }
63 }81 }
6482
83 /// <summary>
84 /// Gets and sets the current progress.
85 /// </summary>
65 public double Progress86 public double Progress
66 {87 {
67 get { return Progressbar.Value; }88 get { return Progressbar.Value; }
6889
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs 2010-07-30 07:38:58 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Update/UpdatingView.xaml.cs 2010-08-09 16:40:24 +0000
@@ -27,18 +27,30 @@
27 /// </summary>27 /// </summary>
28 public partial class UpdatingView : IUpdatingView28 public partial class UpdatingView : IUpdatingView
29 {29 {
30 /// <summary>
31 /// Initializes a new instance of the UpdatingView class.
32 /// </summary>
30 public UpdatingView()33 public UpdatingView()
31 {34 {
32 InitializeComponent();35 InitializeComponent();
33 }36 }
3437
38 /// <summary>
39 /// Gets and sets if the view is visible
40 /// </summary>
35 public bool IsShown41 public bool IsShown
36 {42 {
37 get { return IsVisible; }43 get { return IsVisible; }
38 }44 }
3945
46 /// <summary>
47 /// Gets and sets if the application is being updated.
48 /// </summary>
40 public bool IsUpdating { get; set; }49 public bool IsUpdating { get; set; }
4150
51 /// <summary>
52 /// Gets and sets the text tht tell the user the app is being updated.
53 /// </summary>
42 public string UpdatingText54 public string UpdatingText
43 {55 {
44 get { return (String) MessageLabel.Content; }56 get { return (String) MessageLabel.Content; }
4557
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20namespace Canonical.UbuntuOne.Client.Notification18namespace Canonical.UbuntuOne.Client.Notification
21{19{
22 /// <summary>20 /// <summary>
2321
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs'
--- src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconView.cs 2010-08-09 16:40:24 +0000
@@ -1,34 +1,48 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System.Collections.Generic;18using System.Collections.Generic;
2119
22namespace Canonical.UbuntuOne.Client.Notification20namespace Canonical.UbuntuOne.Client.Notification
23{21{
22 /// <summary>
23 /// View that represents a notification interface that will be shown in the systray of the desktop.
24 /// </summary>
24 public interface INotificationIconView25 public interface INotificationIconView
25 {26 {
27 /// <summary>
28 /// Gets and sets a notification to be shown to the user.
29 /// </summary>
26 string Notification { get; set; }30 string Notification { get; set; }
2731
32 /// <summary>
33 /// Gets and sets the list of recently modified files.
34 /// </summary>
28 IList<string> RecentlyModifiedFiles { get; set; }35 IList<string> RecentlyModifiedFiles { get; set; }
2936
37 /// <summary>
38 /// Gets and sets the state od the sync daemon to be displayed.
39 /// </summary>
30 string State { get; set; }40 string State { get; set; }
3141
42 /// <summary>
43 /// Gets and sets the string with the information of the current operation being
44 /// performed.
45 /// </summary>
32 string CurrentOperation { get; set; }46 string CurrentOperation { get; set; }
33 }47 }
34}48}
3549
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs'
--- src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/IStateMapper.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20namespace Canonical.UbuntuOne.Client.Notification18namespace Canonical.UbuntuOne.Client.Notification
21{19{
22 /// <summary>20 /// <summary>
2321
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs'
--- src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/ISyncDaemonClientNotifier.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
2119
22namespace Canonical.UbuntuOne.Client.Notification20namespace Canonical.UbuntuOne.Client.Notification
2321
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-07-27 11:58:32 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
2119
22namespace Canonical.UbuntuOne.Client.Notification20namespace Canonical.UbuntuOne.Client.Notification
2321
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
21using Canonical.UbuntuOne.Client.Preferences;19using Canonical.UbuntuOne.Client.Preferences;
22using Canonical.UbuntuOne.Common.Aop;20using Canonical.UbuntuOne.Common.Aop;
@@ -25,12 +23,24 @@
2523
26namespace Canonical.UbuntuOne.Client.Notification24namespace Canonical.UbuntuOne.Client.Notification
27{25{
26 /// <summary>
27 /// Implementation of the INotificationIconPresenter interface that manages a view that is used
28 /// to display notifications to the user.
29 /// </summary>
28 public class NotificationIconPresenter : INotificationIconPresenter30 public class NotificationIconPresenter : INotificationIconPresenter
29 {31 {
30 #region Variables32 #region Variables
3133
34 /// <summary>
35 /// The url to ebe openened when the user wants to upgrade.
36 /// </summary>
32 public const string UpgradeUrl = "https://one.ubuntu.com/upgrade";37 public const string UpgradeUrl = "https://one.ubuntu.com/upgrade";
38
39 /// <summary>
40 /// The user to be openened when the user requires help.
41 /// </summary>
33 public const string HelpUrl = "https://one.ubuntu.com/support/";42 public const string HelpUrl = "https://one.ubuntu.com/support/";
43
34 private static readonly string SharesLocation = "";44 private static readonly string SharesLocation = "";
35 private static readonly string SyncsLocation = "";45 private static readonly string SyncsLocation = "";
36 private ISyncDaemonClientNotifier _clientNotifier;46 private ISyncDaemonClientNotifier _clientNotifier;
@@ -180,11 +190,17 @@
180190
181 #region Implementation of INotificationIconPresenter191 #region Implementation of INotificationIconPresenter
182192
193 /// <summary>
194 /// Opens the Preferences window of Ubuntu One.
195 /// </summary>
183 public void OpenUbuntuOnePreferences()196 public void OpenUbuntuOnePreferences()
184 {197 {
185 PreferencesDialogPresenter.Show();198 PreferencesDialogPresenter.Show();
186 }199 }
187200
201 /// <summary>
202 /// Opens the explorer with the location of the shares of Ubuntu One.
203 /// </summary>
188 public void OpenSharesLocation()204 public void OpenSharesLocation()
189 {205 {
190 try206 try
@@ -201,6 +217,9 @@
201 }217 }
202 }218 }
203219
220 /// <summary>
221 /// Opens the explorer with the location of the sync folders.
222 /// </summary>
204 public void OpenSyncsLocation()223 public void OpenSyncsLocation()
205 {224 {
206 try225 try
@@ -217,16 +236,25 @@
217 }236 }
218 }237 }
219238
239 /// <summary>
240 /// Opens the location used to provide help to the user.
241 /// </summary>
220 public void OpenHelp()242 public void OpenHelp()
221 {243 {
222 Webbrowser.LauncWebpage(HelpUrl);244 Webbrowser.LauncWebpage(HelpUrl);
223 }245 }
224246
247 /// <summary>
248 /// Opens the location used to upgrade the account of the user.
249 /// </summary>
225 public void OpenUpgradeOption()250 public void OpenUpgradeOption()
226 {251 {
227 Webbrowser.LauncWebpage(UpgradeUrl);252 Webbrowser.LauncWebpage(UpgradeUrl);
228 }253 }
229254
255 /// <summary>
256 /// Close the client and the daemon.
257 /// </summary>
230 public void Exit()258 public void Exit()
231 {259 {
232 Application.Exit();260 Application.Exit();
233261
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
2119
22namespace Canonical.UbuntuOne.Client.Notification20namespace Canonical.UbuntuOne.Client.Notification
@@ -26,10 +24,18 @@
26 /// </summary>24 /// </summary>
27 public class OperationCompletenessEventArgs : EventArgs25 public class OperationCompletenessEventArgs : EventArgs
28 {26 {
2927 /// <summary>
28 /// Enumerator that contains the different units used for the downloads.
29 /// </summary>
30 public enum SpeedUnitsEnum30 public enum SpeedUnitsEnum
31 {31 {
32 /// <summary>
33 /// MB per second.
34 /// </summary>
32 MB,35 MB,
36 /// <summary>
37 /// KB per second.
38 /// </summary>
33 KB,39 KB,
34 }40 }
3541
3642
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-07-27 11:58:32 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-08-09 16:40:24 +0000
@@ -1,23 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20
21using System;18using System;
22using System.Collections.Generic;19using System.Collections.Generic;
2320
2421
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-07-27 11:58:32 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
2119
22namespace Canonical.UbuntuOne.Client.Notification20namespace Canonical.UbuntuOne.Client.Notification
@@ -31,9 +29,21 @@
31 /// </summary>29 /// </summary>
32 public enum StateEnum30 public enum StateEnum
33 {31 {
32 /// <summary>
33 /// The sync daemon is out of sync.
34 /// </summary>
34 OUT_OF_SYNC,35 OUT_OF_SYNC,
36 /// <summary>
37 /// The synd daemong is syncing.
38 /// </summary>
35 SYNC_IN_PROGRESS,39 SYNC_IN_PROGRESS,
40 /// <summary>
41 /// All the files are up to date.
42 /// </summary>
36 UP_TO_DATE,43 UP_TO_DATE,
44 /// <summary>
45 /// The sync daemong is in an error state.
46 /// </summary>
37 ERROR47 ERROR
38 }48 }
3949
4050
=== modified file 'src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialogPresenter.cs 2010-08-09 16:40:24 +0000
@@ -1,23 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20
21namespace Canonical.UbuntuOne.Client.Preferences18namespace Canonical.UbuntuOne.Client.Preferences
22{19{
23 /// <summary>20 /// <summary>
@@ -25,6 +22,9 @@
25 /// </summary>22 /// </summary>
26 public interface IPreferencesDialogPresenter23 public interface IPreferencesDialogPresenter
27 {24 {
25 /// <summary>
26 /// Shows the dialog to the user.
27 /// </summary>
28 void Show();28 void Show();
29 }29 }
30}30}
3131
=== modified file 'src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs'
--- src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-08-09 16:40:24 +0000
@@ -1,22 +1,20 @@
1/**1// Copyright 2010 Canonical Ltd.
2 * Copyright 2010 Canonical Ltd.2//
3 * 3// This file is part of UbuntuOne on Windows.
4 * This file is part of UbuntuOne on Windows.4//
5 * 5// UbuntuOne on Windows is free software: you can redistribute it and/or modify
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
7 * it under the terms of the GNU Lesser General Public License version 7// as published by the Free Software Foundation.
8 * as published by the Free Software Foundation. 8//
9 * 9// Ubuntu One on Windows is distributed in the hope that it will be useful,
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
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// GNU Lesser General Public License for more details.
13 * GNU Lesser General Public License for more details. 13//
14 *14// You should have received a copy of the GNU Lesser General Public License
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/>.
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.16//
17 * 17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;18using System;
21using Canonical.UbuntuOne.Client.Notification;19using Canonical.UbuntuOne.Client.Notification;
22using Canonical.UbuntuOne.Common;20using Canonical.UbuntuOne.Common;
2321
=== modified file 'src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs'
--- src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs 2010-07-26 11:09:17 +0000
+++ src/Canonical.UbuntuOne.Common/Aop/DebugLogAfterThrowInterceptor.cs 2010-08-09 16:40:24 +0000
@@ -33,6 +33,14 @@
33 {33 {
34 private readonly ILog _logger = LogManager.GetLogger(typeof (DebugLogAfterThrowInterceptor));34 private readonly ILog _logger = LogManager.GetLogger(typeof (DebugLogAfterThrowInterceptor));
3535
36 /// <summary>
37 /// Method that will be executed after an exception has been thrown by the method to which
38 /// the advice was added.
39 /// </summary>
40 /// <param name="method">The method that threw the exception.</param>
41 /// <param name="args">The arguments which were used to call the method.</param>
42 /// <param name="target">The object that is target of the method.</param>
43 /// <param name="ex">The exception thrown by the method execution.</param>
36 public void AfterThrowing(MethodInfo method, object[] args, object target, Exception ex)44 public void AfterThrowing(MethodInfo method, object[] args, object target, Exception ex)
37 {45 {
38 if(Logger == null)46 if(Logger == null)
3947
=== modified file 'src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs'
--- src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs 2010-07-23 15:47:32 +0000
+++ src/Canonical.UbuntuOne.Common/Container/UnsatisfiedDependencyException.cs 2010-08-09 16:40:24 +0000
@@ -22,6 +22,9 @@
2222
23namespace Canonical.UbuntuOne.Common.Container23namespace Canonical.UbuntuOne.Common.Container
24{24{
25 /// <summary>
26 /// Exception to be thrown when the IContainer is missing a type implementation.
27 /// </summary>
25 [Serializable]28 [Serializable]
26 public class UnsatisfiedDependencyException : Exception29 public class UnsatisfiedDependencyException : Exception
27 {30 {
@@ -43,6 +46,11 @@
43 /// <param name="innerException">The inner exception.</param>46 /// <param name="innerException">The inner exception.</param>
44 public UnsatisfiedDependencyException(string message, Exception innerException) : base(message, innerException) { }47 public UnsatisfiedDependencyException(string message, Exception innerException) : base(message, innerException) { }
4548
49 /// <summary>
50 /// Initializes a new instance of the UnsatisfiedDependencyException class with serialized data.
51 /// </summary>
52 /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
53 /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
46 protected UnsatisfiedDependencyException(SerializationInfo info, StreamingContext context)54 protected UnsatisfiedDependencyException(SerializationInfo info, StreamingContext context)
47 : base(info, context)55 : base(info, context)
48 {56 {
4957
=== modified file 'src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs'
--- src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs 2010-07-07 10:41:49 +0000
+++ src/Canonical.UbuntuOne.Common/DataContracts/AccountData.cs 2010-08-09 16:40:24 +0000
@@ -19,7 +19,12 @@
19 */19 */
20namespace Canonical.UbuntuOne.Common20namespace Canonical.UbuntuOne.Common
21{21{
22 /// <summary>
23 /// Class that provides the information of the Ubuntu One account currently running the
24 /// sync daemon.
25 /// </summary>
22 public class AccountData26 public class AccountData
23 {27 {
28 // TODO: Implement, talk with verterok
24 }29 }
25}30}
2631
=== modified file 'src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs'
--- src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs 2010-07-07 10:41:49 +0000
+++ src/Canonical.UbuntuOne.Common/DataContracts/Enumerators.cs 2010-08-09 16:40:24 +0000
@@ -19,9 +19,18 @@
19 */19 */
20namespace Canonical.UbuntuOne.Common20namespace Canonical.UbuntuOne.Common
21{21{
22 /// <summary>
23 /// Enumerator that contains the different access levels that a user has to a share.
24 /// </summary>
22 public enum AccessLevel25 public enum AccessLevel
23 {26 {
27 /// <summary>
28 /// The user just has read rights.
29 /// </summary>
24 VIEW,30 VIEW,
31 /// <summary>
32 /// The user has read and write rights.
33 /// </summary>
25 MODIFY34 MODIFY
26 }35 }
27}36}
2837
=== modified file 'src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs'
--- src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs 2010-07-07 10:41:49 +0000
+++ src/Canonical.UbuntuOne.Common/IProcessManagerFactory.cs 2010-08-09 16:40:24 +0000
@@ -19,8 +19,16 @@
19 */19 */
20namespace Canonical.UbuntuOne.Common20namespace Canonical.UbuntuOne.Common
21{21{
22 /// <summary>
23 /// Interface to be implemented by a factory that can generate process managers
24 /// to be used to manage a process in the system.
25 /// </summary>
22 public interface IProcessManagerFactory26 public interface IProcessManagerFactory
23 {27 {
28 /// <summary>
29 /// Returns a new manager that can be used to manage a process.
30 /// </summary>
31 /// <returns>A IProcessManager that can be used to interact with a process.</returns>
24 IProcessManager GetManager();32 IProcessManager GetManager();
25 }33 }
26}34}
2735
=== modified file 'src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs'
--- src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Common/OperationContracts/ISyncFolders.cs 2010-08-09 16:40:24 +0000
@@ -22,6 +22,10 @@
2222
23namespace Canonical.UbuntuOne.Common23namespace Canonical.UbuntuOne.Common
24{24{
25 /// <summary>
26 /// Interface to be implemented by those objects that allow to interact with the data related to
27 /// the sync folders by the Ubuntu One sync daemon.
28 /// </summary>
25 [ServiceContract(29 [ServiceContract(
26 Name = "SyncFolders",30 Name = "SyncFolders",
27 Namespace = "http://one.ubuntu.com/syncfolders",31 Namespace = "http://one.ubuntu.com/syncfolders",
2832
=== modified file 'src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs'
--- src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs 2010-07-29 16:35:27 +0000
+++ src/Canonical.UbuntuOne.Common/Update/DownloadingPresenter.cs 2010-08-09 16:40:24 +0000
@@ -30,11 +30,23 @@
30 #region Variables30 #region Variables
3131
32 private IDownloadingView _view;32 private IDownloadingView _view;
33 /// <summary>
34 /// The maximum value to be used in the view related to the percentage of
35 /// update that has been downloaded.
36 /// </summary>
33 public const double MaximumValue = 100;37 public const double MaximumValue = 100;
38
39 /// <summary>
40 /// The minimum value to be used in the view related to the percentage of
41 /// update that has been downloaded.
42 /// </summary>
34 public const double MinimumValue = 0;43 public const double MinimumValue = 0;
3544
36 #endregion45 #endregion
3746
47 /// <summary>
48 /// Gets and sets the view to be used to interact with the user.
49 /// </summary>
38 public IDownloadingView View50 public IDownloadingView View
39 {51 {
40 get { return _view; }52 get { return _view; }
@@ -55,6 +67,12 @@
55 }67 }
56 }68 }
5769
70 /// <summary>
71 /// Handler to be called when there has been an updated related to the progess of the download
72 /// of the update.
73 /// </summary>
74 /// <param name="sender">The object that sent the event.</param>
75 /// <param name="args">The arguments that provide information regarding the changes in the download.</param>
58 public void DownloadProgressHandler(object sender, DownloadTaskProgressEventArgs args)76 public void DownloadProgressHandler(object sender, DownloadTaskProgressEventArgs args)
59 {77 {
60 if(!View.IsShown)78 if(!View.IsShown)
@@ -63,6 +81,11 @@
63 View.Progress = (args.BytesTransferred * MaximumValue) / args.BytesTotal;81 View.Progress = (args.BytesTransferred * MaximumValue) / args.BytesTotal;
64 }82 }
6583
84 /// <summary>
85 /// Handler to be called when there has been an error when downloading an update.
86 /// </summary>
87 /// <param name="sender">The object that sent the event.</param>
88 /// <param name="args">The arguments that provide information regarding the error.</param>
66 public void DownloadErrorHandler(object sender, DownloadTaskErrorEventArgs args)89 public void DownloadErrorHandler(object sender, DownloadTaskErrorEventArgs args)
67 {90 {
68 View.DownloadingMessage = UpdateResources.DownloadError;91 View.DownloadingMessage = UpdateResources.DownloadError;
@@ -70,6 +93,11 @@
70 View.CloseButtonIsEnabled = true;93 View.CloseButtonIsEnabled = true;
71 }94 }
7295
96 /// <summary>
97 /// Handler to be called when the update has been completed.
98 /// </summary>
99 /// <param name="sender">The object that sent the event.</param>
100 /// <param name="e">The arguments that provide more information about the comleted task.</param>
73 public void DownloadUpdateCompleted(object sender, TaskEventArgs e)101 public void DownloadUpdateCompleted(object sender, TaskEventArgs e)
74 {102 {
75 View.DownloadingMessage = UpdateResources.DownloadCompleted; 103 View.DownloadingMessage = UpdateResources.DownloadCompleted;
76104
=== modified file 'src/Canonical.UbuntuOne.Common/Utils/Explorer.cs'
--- src/Canonical.UbuntuOne.Common/Utils/Explorer.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.Common/Utils/Explorer.cs 2010-08-09 16:40:24 +0000
@@ -22,7 +22,10 @@
2222
23namespace Canonical.UbuntuOne.Common.Utils23namespace Canonical.UbuntuOne.Common.Utils
24{24{
2525 /// <summary>
26 /// Implementation of the IExplorer that allows to interact with the file explorer in
27 /// the system.
28 /// </summary>
26 public class Explorer : IExplorer29 public class Explorer : IExplorer
27 {30 {
28 private const string ExplorerProcess = "explorer.exe";31 private const string ExplorerProcess = "explorer.exe";
2932
=== modified file 'src/Canonical.UbuntuOne.Common/Validation/MultiException.cs'
--- src/Canonical.UbuntuOne.Common/Validation/MultiException.cs 2010-07-07 10:41:49 +0000
+++ src/Canonical.UbuntuOne.Common/Validation/MultiException.cs 2010-08-09 16:40:24 +0000
@@ -88,7 +88,7 @@
88 /// Creates an exception with a collection of inner exceptions. 88 /// Creates an exception with a collection of inner exceptions.
89 /// </summary>89 /// </summary>
90 /// <param name="innerExceptions">90 /// <param name="innerExceptions">
91 /// A <see cref="IEnumerable" /> with the inner exceptions.91 /// A enumerable with the inner exceptions.
92 /// </param>92 /// </param>
93 public MultiException(IEnumerable<Exception> innerExceptions)93 public MultiException(IEnumerable<Exception> innerExceptions)
94 : this(null, innerExceptions)94 : this(null, innerExceptions)
@@ -127,7 +127,7 @@
127 /// A <see cref="System.String"/> with the message of the exception.127 /// A <see cref="System.String"/> with the message of the exception.
128 /// </param>128 /// </param>
129 /// <param name="innerExceptions">129 /// <param name="innerExceptions">
130 /// A <see cref="IEnumerable"/> with the inner exceptions.130 /// An enumerable with the inner exceptions.
131 /// </param>131 /// </param>
132 public MultiException(string message, IEnumerable<Exception> innerExceptions)132 public MultiException(string message, IEnumerable<Exception> innerExceptions)
133 : base(message, innerExceptions.FirstOrDefault())133 : base(message, innerExceptions.FirstOrDefault())
134134
=== modified file 'src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs'
--- src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs 2010-08-09 16:40:23 +0000
+++ src/Canonical.UbuntuOne.ProcessDispatcher/SyncDaemonService.cs 2010-08-09 16:40:24 +0000
@@ -235,7 +235,7 @@
235235
236 /// <summary>236 /// <summary>
237 /// Allows the client to schedule the share and node be next in the237 /// Allows the client to schedule the share and node be next in the
238 // queue of waiting commands.238 /// queue of waiting commands.
239 /// </summary>239 /// </summary>
240 /// <param name="shareId">The unique id that describes the share.</param>240 /// <param name="shareId">The unique id that describes the share.</param>
241 /// <param name="nodeId">The unique id that describes the node.</param>241 /// <param name="nodeId">The unique id that describes the node.</param>

Subscribers

People subscribed via source and target branches

to all changes: