C# Class FSpot.Thumbnail.XdgDirectoryService

Implements some XDG directory specification http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Inheritance: IXdgDirectoryService
Mostrar archivo Open project: mono/f-spot

Public Methods

Method Description
GetThumbnailsDir ( ThumbnailSize size ) : string

Gets the thumbnails dir based on the user cache dir and the thumbnail size. http://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html

GetUserCacheDir ( ) : string

Gets the XDG user cache dir. There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME. Re-implements glib's g_get_user_cache_dir

XdgDirectoryService ( IFileSystem fileSystem, IEnvironment environment ) : System.IO

Method Details

GetThumbnailsDir() public method

Gets the thumbnails dir based on the user cache dir and the thumbnail size. http://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html
public GetThumbnailsDir ( ThumbnailSize size ) : string
size ThumbnailSize The thumbnail size to get the dir for.
return string

GetUserCacheDir() public method

Gets the XDG user cache dir. There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME. Re-implements glib's g_get_user_cache_dir
public GetUserCacheDir ( ) : string
return string

XdgDirectoryService() public method

public XdgDirectoryService ( IFileSystem fileSystem, IEnvironment environment ) : System.IO
fileSystem IFileSystem
environment IEnvironment
return System.IO