[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_qtbase/qtappbase/QAFiletype.qt.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00031 namespace QtAppBase {
00032 
00033 class QAFiletype : QObject
00034 {
00035     Q_OBJECT
00036     
00037 public:
00038     QAFiletype(const QString& typeIdentifier,
00039                const QString& displayName,
00040                const QString& defaultExtension,
00041                const QStringList& acceptedExtensions,
00042                QObject* parent = NULL);
00043     QAFiletype(const QAFiletype& other);
00044     virtual ~QAFiletype() {}
00045     
00046 public:
00047     QString typeIdentifier() const;
00048     QString displayName() const;
00049     QString defaultExtension() const;
00050     QStringList acceptedExtensions() const;
00051     bool operator==(const QAFiletype& rhs); // compares by identifier
00052     
00053 public:
00054     static const QString DEFAULT_FILETYPE_IDENTIFIER = "ROOT";
00055     static QAFiletype defaultFiletype(QObject* parent = NULL);
00056 };
00057 
00058 
00059 class QAFiletypeList : QList<QAFiletype>
00060 {
00061     Q_OBJECT
00062     
00063 public:
00064     virtual ~QAFiletypeList();
00065     
00066 public:
00067     int indexForExtension(const QString& extension, int from=0);
00068     QAFiletype firstFiletypeAcceptsExtension(const QString& extension);
00069 };
00070 
00071 
00072 } //namespace

Generated on Mon Sep 20 01:01:27 2010 for Hugintrunk by doxygen 1.3.9.1