Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

TagLib::SupportedMimeType Class Reference

List of all members.


Detailed Description

This class provides an attribute for listing supported mime-types for classes that extend File.

When classes that extend File are registered with FileTypes.Register, its SupportedMimeType attributes are read.

using TagLib;

         [SupportedMimeType("taglib/wv", "wv")]
         [SupportedMimeType("audio/x-wavpack")]
         public class MyFile : File {
            ...
         }

Definition at line 51 of file SupportedMimeType.cs.


Public Member Functions

 SupportedMimeType (string mimetype, string extension)
 Constructs and initializes a new instance of the SupportedMimeType attribute for a specified mime-type and extension.
 SupportedMimeType (string mimetype)
 Constructs and initializes a new instance of the SupportedMimeType attribute for a specified mime-type.

Properties

static IEnumerable< string > AllExtensions [get]
 Gets all the extensions that have been registered with SupportedMimeType.
static IEnumerable< string > AllMimeTypes [get]
 Gets all the mime-types that have been registered with SupportedMimeType.
string Extension [get]
 Gets the extension registered by the current instance.
string MimeType [get]
 Gets the mime-type registered by the current instance.

Static Private Member Functions

static SupportedMimeType ()
 Constructs and initializes the SupportedMimeType class by initializing the FileTypes class.

Private Attributes

string extension
 Contains the extension.
string mimetype
 Contains the mime-type.

Static Private Attributes

static List< SupportedMimeTypemimetypes
 Contains the registered SupportedMimeType objects.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index