aboutsummaryrefslogtreecommitdiff
path: root/src/fetch-file.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-01 17:22:55 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-01 17:22:55 +0100
commit9ab9b175e1f77457157211f5f93c54e8ae87e3dc (patch)
tree462c5bcbf3ad717bfc6e0f98c2ec662fd1842591 /src/fetch-file.vala
parent67bdc60671c338045771b52a670c8788e565fcb3 (diff)
downloadayatana-indicator-sound-9ab9b175e1f77457157211f5f93c54e8ae87e3dc.tar.gz
ayatana-indicator-sound-9ab9b175e1f77457157211f5f93c54e8ae87e3dc.tar.bz2
ayatana-indicator-sound-9ab9b175e1f77457157211f5f93c54e8ae87e3dc.zip
almost bug free
Diffstat (limited to 'src/fetch-file.vala')
-rw-r--r--src/fetch-file.vala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fetch-file.vala b/src/fetch-file.vala
index 55bfdc3..f172853 100644
--- a/src/fetch-file.vala
+++ b/src/fetch-file.vala
@@ -2,6 +2,7 @@ public class FetchFile : Object
{
/* public variables */
public string uri {get; construct;}
+ public string intended_property {get; construct;}
/* private variables */
private DataInputStream stream;
@@ -10,11 +11,11 @@ public class FetchFile : Object
/* public signals */
public signal void failed ();
- public signal void completed (ByteArray data);
+ public signal void completed (ByteArray data, string property);
- public FetchFile (string uri)
+ public FetchFile (string uri, string prop)
{
- Object (uri: uri);
+ Object (uri: uri, intended_property: prop);
}
construct
@@ -60,6 +61,6 @@ public class FetchFile : Object
this.failed ();
}
} while (bufsize > 0);
- this.completed (this.data);
+ this.completed (this.data, this.intended_property);
}
}