Permalink
Browse files

Add storage manager property to repository object

  • Loading branch information...
1 parent 505143a commit 5002eaa97a3c56ff0cfedc8e62a97e225ca21ad1 @piotras piotras committed May 3, 2011
Showing with 12 additions and 6 deletions.
  1. +12 −6 src/vala/storable.vala
View
@@ -49,6 +49,7 @@ namespace MidgardCR {
internal int _id = 0;
internal Metadata _metadata = null;
internal string _identifier = null;
+ internal StorageManager _storage_manager = null;
/* properties */
@@ -59,12 +60,8 @@ namespace MidgardCR {
* It's internally set in any other case.
*/
public string guid {
- get {
- return this._guid;
- }
- construct {
- this._guid = value;
- }
+ get { return this._guid; }
+ construct { this._guid = value; }
}
/**
@@ -91,6 +88,15 @@ namespace MidgardCR {
get { return this._metadata; }
}
+ /**
+ * Storage manager for which current instance has been initialized.
+ * It's not mandatory to set storage manager.
+ */
+ public StorageManager storage_manager {
+ get { return this._storage_manager; }
+ construct { this._storage_manager = value; }
+ }
+
/* signals */
/**

0 comments on commit 5002eaa

Please sign in to comment.