src/hbservers/hbsplashgenerator/hbsplashgenerator_p.h
changeset 21 4633027730f5
parent 5 627c4a0fd0e7
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    72     void regenerateOne(const QString &splashmlFileName, const QString &customTrDir = QString());
    72     void regenerateOne(const QString &splashmlFileName, const QString &customTrDir = QString());
    73 
    73 
    74 private slots:
    74 private slots:
    75     void doStart();
    75     void doStart();
    76     void processQueue();
    76     void processQueue();
       
    77     void finishWindow();
    77     void processWindow();
    78     void processWindow();
    78     void onDirectoryChanged(const QString &path);
    79     void onDirectoryChanged(const QString &path);
    79 
    80 
    80 public:
    81 public:
    81     struct QueueItem {
    82     struct QueueItem {
   120     void queueAppSpecificItems(const QString &themeName, Qt::Orientation orientation);
   121     void queueAppSpecificItems(const QString &themeName, Qt::Orientation orientation);
   121     bool parseSplashml(const QString &fullFileName, QueueItem &item);
   122     bool parseSplashml(const QString &fullFileName, QueueItem &item);
   122     void parseSplashmlElements(QXmlStreamReader &xml, QueueItem &item, const QString &fullFileName);
   123     void parseSplashmlElements(QXmlStreamReader &xml, QueueItem &item, const QString &fullFileName);
   123     void setupAppSpecificWindow();
   124     void setupAppSpecificWindow();
   124     void setupNameBasedWidgetProps(HbDocumentLoader &loader);
   125     void setupNameBasedWidgetProps(HbDocumentLoader &loader);
   125     void finishWindow();
       
   126     void addTranslator(const QString &name);
   126     void addTranslator(const QString &name);
   127     void clearTranslators();
   127     void clearTranslators();
   128     int updateOutputDirContents(const QString &outDir);
   128     int updateOutputDirContents(const QString &outDir);
   129     void unlockMainWindowInternal();
   129     void unlockMainWindowInternal();
   130 
   130 
   135     QQueue<QueueItem> mQueue;
   135     QQueue<QueueItem> mQueue;
   136     QueueItem mItem;
   136     QueueItem mItem;
   137     QList<QTranslator *> mTranslators;
   137     QList<QTranslator *> mTranslators;
   138     QTime mItemTime;
   138     QTime mItemTime;
   139     bool mFirstRegenerate;
   139     bool mFirstRegenerate;
       
   140     bool mSaveSplFailed;
   140     QHash<QString, QueueItem> mParsedSplashmls;
   141     QHash<QString, QueueItem> mParsedSplashmls;
   141     QSettings *mSettings;
   142     QSettings *mSettings;
   142     QFileSystemWatcher mFsWatcher;
   143     QFileSystemWatcher mFsWatcher;
   143 };
   144 };
   144 
   145