~ubuntu-branches/debian/sid/docky/sid

« back to all changes in this revision

Viewing changes to Docky.Services/Docky.Services/PreferencesService.cs

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2012-01-19 19:03:38 UTC
  • mfrom: (1.1.14) (10.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20120119190338-n44q7tmqsrkudvk7
Tags: 2.1.3-2
* Upload to unstable
* debian/watch:
  + Look for xz tarballs from now on

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//  
2
 
//  Copyright (C) 2009 Jason Smith
 
2
//  Copyright (C) 2009-2010 Jason Smith, Chris Szikszoy
3
3
// 
4
4
//  This program is free software: you can redistribute it and/or modify
5
5
//  it under the terms of the GNU General Public License as published by
17
17
 
18
18
using System;
19
19
 
 
20
using Docky.Services.Prefs;
 
21
 
20
22
namespace Docky.Services
21
23
{
22
 
 
23
 
 
24
24
        public class PreferencesService
25
25
        {
26
 
 
27
 
                internal PreferencesService ()
28
 
                {
29
 
                }
30
 
                
31
26
                public IPreferences Get<TOwner> ()
32
27
                        where TOwner : class
33
28
                {
34
 
                        return new Preferences<TOwner> ();
 
29
                        return new Preferences (typeof (TOwner).FullName.Replace (".", "/"));
 
30
                }
 
31
                
 
32
                public IPreferences Get (string basePath)
 
33
                {
 
34
                        return new Preferences (basePath);
35
35
                }
36
36
        }
37
37
}