~do-plugins/do-plugins/trunk

« back to all changes in this revision

Viewing changes to YouTube/src/Preferences.cs

  • Committer: Luis Montiel
  • Date: 2009-01-20 18:56:52 UTC
  • mto: (680.2.3 youtube-plugin)
  • mto: This revision was merged to the branch mainline in revision 535.
  • Revision ID: luis@luis-laptop-20090120185652-76y1t3zrx9uhsodg
fixed .mdp files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Preferences.cs created with MonoDevelop
 
2
// User: luis at 07:53 p 14/01/2009
 
3
//
 
4
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
 
5
//
 
6
 
 
7
using System;
 
8
 
 
9
using Mono.Unix;
 
10
 
 
11
using Do.Platform;
 
12
 
 
13
namespace YouTube
 
14
{
 
15
        
 
16
        public class YouTubePreferences
 
17
        {
 
18
                const string UsernameKey = "Username";
 
19
                const string PasswordKey = "Password";
 
20
                
 
21
                IPreferences prefs;
 
22
                
 
23
                public YouTubePreferences()
 
24
                {
 
25
                        prefs = Services.Preferences.Get<YouTubePreferences> ();
 
26
                }
 
27
 
 
28
                public string Username {
 
29
                        get { return prefs.Get<string> (UsernameKey, ""); }
 
30
                        set { prefs.Set<string> (UsernameKey, value); }
 
31
                }
 
32
 
 
33
                public string Password {
 
34
                        get { return prefs.GetSecure (PasswordKey, ""); }
 
35
                        set { prefs.SetSecure (PasswordKey, value); }
 
36
                }
 
37
        }
 
38
}
 
 
b'\\ No newline at end of file'