[tasque/transition: 146/213] Backend: Make configured and initialized properties concrete
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 146/213] Backend: Make configured and initialized properties concrete
- Date: Wed, 29 Aug 2012 18:46:18 +0000 (UTC)
commit 100b7b8e125d29a9bd98a8c04853726425722d1d
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 18:27:55 2012 +0200
Backend: Make configured and initialized properties concrete
src/libtasque/Backend.cs | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/libtasque/Backend.cs b/src/libtasque/Backend.cs
index 0818a71..b521dbd 100644
--- a/src/libtasque/Backend.cs
+++ b/src/libtasque/Backend.cs
@@ -70,7 +70,7 @@ namespace Tasque
/// (credentials/etc.) to run. If false, the properties dialog will
/// be shown so the user can configure the backend.
/// </value>
- public abstract bool Configured { get; }
+ public abstract bool Configured { get; protected set; }
public Category DefaultCategory {
get { return defaultCategory; }
@@ -86,7 +86,15 @@ namespace Tasque
/// <value>
/// Inidication that the backend is initialized
/// </value>
- public abstract bool Initialized { get; }
+ public bool Initialized {
+ get { return initialized; }
+ protected set {
+ if (value != initialized) {
+ initialized = value;
+ OnBackendInitialized ();
+ }
+ }
+ }
/// <value>
/// A human-readable name for the backend that will be displayed in the
@@ -267,5 +275,6 @@ namespace Tasque
List<INotifyCollectionChanged> categoriesChangedSources;
Category defaultCategory;
SortedNotifyCollection<Task> tasks;
+ bool initialized;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]