~elementary-apps/noise/trunk

« back to all changes in this revision

Viewing changes to src/Devices/AndroidDevice.vala

  • Committer: sgringwe at gmail
  • Date: 2011-11-21 21:51:19 UTC
  • Revision ID: sgringwe@gmail.com-20111121215119-rm3i25j09svrecnz
in the middle of device work, committing for a reference point

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using GPod;
 
2
 
 
3
public class BeatBox.AndroidDevice : GLib.Object, BeatBox.Device {
 
4
        Mount mount;
 
5
        GLib.Icon icon;
 
6
        
 
7
        public AndroidDevice(Mount mount) {
 
8
                this.mount = mount;
 
9
        }
 
10
        
 
11
        public bool initialize() {
 
12
                return false;
 
13
        }
 
14
        
 
15
        public string getContentType() {
 
16
                return "android";
 
17
        }
 
18
        public string getDisplayName() {
 
19
                return mount.get_name();
 
20
        }
 
21
        
 
22
        public void set_mount(Mount mount) {
 
23
                this.mount = mount;
 
24
        }
 
25
        
 
26
        public Mount get_mount() {
 
27
                return mount;
 
28
        }
 
29
        
 
30
        public string get_path() {
 
31
                return mount.get_default_location().get_path();
 
32
        }
 
33
        
 
34
        public void set_icon(GLib.Icon icon) {
 
35
                this.icon = icon;
 
36
        }
 
37
        
 
38
        public GLib.Icon get_icon() {
 
39
                return icon;
 
40
        }
 
41
        
 
42
        public int64 get_capacity() {
 
43
                return (int64)0;
 
44
        }
 
45
        
 
46
        public int64 get_used_space() {
 
47
                return (int64)0;
 
48
        }
 
49
        
 
50
        public int64 get_free_space() {
 
51
                return (int64)0;
 
52
        }
 
53
        
 
54
        public void unmount() {
 
55
                
 
56
        }
 
57
        
 
58
        public void eject() {
 
59
                
 
60
        }
 
61
        
 
62
        public void get_device_type() {
 
63
                
 
64
        }
 
65
}