Diff of /libkwave/CodecBase.h [3e4acc] .. [1f6d2f] Maximize Restore

  Switch to side-by-side view

--- a/libkwave/CodecBase.h
+++ b/libkwave/CodecBase.h
@@ -29,76 +29,83 @@
 class KMimeType;
 class KUrl;
 
-class KDE_EXPORT CodecBase
+namespace Kwave
 {
-public:
 
-    /** simplified mime type: contains only name and list of patterns */
-    typedef struct {
-	QString name;
-	QString description;
-	QStringList patterns;
-    } MimeType;
+    class KDE_EXPORT CodecBase
+    {
+    public:
 
-    /** Constructor */
-    CodecBase();
+	/** simplified mime type: contains only name and list of patterns */
+	typedef struct {
+	    QString name;
+	    QString description;
+	    QStringList patterns;
+	} MimeType;
 
-    /** Destructor */
-    virtual ~CodecBase();
+	/** Constructor */
+	CodecBase();
 
-    /** Returns true if the given mime type is supported */
-    virtual bool supports(const KMimeType &mimetype);
+	/** Destructor */
+	virtual ~CodecBase();
 
-    /** Returns true if the given mime type is supported */
-    virtual bool supports(const QString &mimetype_name);
+	/** Returns true if the given mime type is supported */
+	virtual bool supports(const KMimeType &mimetype);
 
-    /** Returns a list of supported file extensions */
-    virtual QStringList extensions(const QString &mimetype_name) const;
+	/** Returns true if the given mime type is supported */
+	virtual bool supports(const QString &mimetype_name);
 
-    /** Returns a list of supported mime types */
-    virtual const QList<CodecBase::MimeType> mimeTypes();
+	/** Returns a list of supported file extensions */
+	virtual QStringList extensions(const QString &mimetype_name) const;
 
-    /** Returns a list of supported compression types */
-    virtual const QList<int> compressionTypes();
+	/** Returns a list of supported mime types */
+	virtual const QList<CodecBase::MimeType> mimeTypes();
 
-    /**
-     * Adds a new mime type to the internal list of supported mime
-     * types. First it tries to find the mime type in the system,
-     * if none was found, a new mime type is created, using the
-     * passed parameters. The system's mime types are always preferred
-     * over the passed 'built-ins'.
-     * @param name the mime type's name
-     * @param description verbose description
-     * @param patterns list of file patterns, passed as a single string,
-     *                 separated by "; "
-     */
-    virtual void addMimeType(const QString &name,
-                             const QString &description,
-                             const QString &patterns);
+	/** Returns a list of supported compression types */
+	virtual const QList<int> compressionTypes();
 
-    /**
-     * Adds a new compression type to the internal list of supported
-     * compression types.
-     * @param compression the compression type
-     */
-    virtual void addCompression(int compression);
+	/**
+	 * Adds a new mime type to the internal list of supported mime
+	 * types. First it tries to find the mime type in the system,
+	 * if none was found, a new mime type is created, using the
+	 * passed parameters. The system's mime types are always preferred
+	 * over the passed 'built-ins'.
+	 * @param name the mime type's name
+	 * @param description verbose description
+	 * @param patterns list of file patterns, passed as a single string,
+	 *                 separated by "; "
+	 */
+	virtual void addMimeType(const QString &name,
+	                         const QString &description,
+	                         const QString &patterns);
 
-    /**
-     * Tries to find the name of a mime type by a URL. If not found, it
-     * returns the default mime type, never an empty string.
-     * @param url a KUrl, only the filename's extension will be inspected
-     * @return name of the mime type or the default mime type
-     */
-    virtual QString whatContains(const KUrl &url);
+	/**
+	 * Adds a new compression type to the internal list of supported
+	 * compression types.
+	 * @param compression the compression type
+	 */
+	virtual void addCompression(int compression);
 
-private:
+	/**
+	 * Tries to find the name of a mime type by a URL. If not found, it
+	 * returns the default mime type, never an empty string.
+	 * @param url a KUrl, only the filename's extension will be inspected
+	 * @return name of the mime type or the default mime type
+	 */
+	virtual QString whatContains(const KUrl &url);
 
-    /** list of supported mime types */
-    QList<MimeType> m_supported_mime_types;
+    private:
 
-    /** list of supported compression types */
-    QList<int> m_supported_compression_types;
+	/** list of supported mime types */
+	QList<MimeType> m_supported_mime_types;
 
-};
+	/** list of supported compression types */
+	QList<int> m_supported_compression_types;
+
+    };
+}
 
 #endif /* _CODEC_BASE_H_ */
+
+//***************************************************************************
+//***************************************************************************