Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:CobrA_SK
fcmake
filelist.h
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File filelist.h of Package fcmake
/*************************************************************************** * Copyright (C) 2008 Brno University of Technology, * * Faculty of Information Technology * * Author(s): Marek Vavrusa <xvavru00 AT stud.fit.vutbr.cz> * * Zdenek Vasicek <vasicek AT fit.vutbr.cz> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef FCMAKEFILELIST_H #define FCMAKEFILELIST_H #include <QList> #include <QMap> #include <QDir> #include <QString> namespace FCMake { enum FileListItemType { Dir, File }; struct FileListItem { QString filePath; FileListItemType type; int size; int mtime; }; //class FileList; typedef QList<FileListItem> QFileList; typedef QMap<QString, FileListItem*> QFileListMap; class FileList : public QFileList { public: FileList(const QDir& rootDir, bool refreshNow = true); ~FileList(); const QDir& root(); QFileListMap* map(); void filterChanges(FileList& oldList); void setMtimeFrom(FileList& list); void refresh(); bool writeToXML(const QString& filePath = QString("base/filelist.xml")); bool loadFromXML(const QString& filePath = QString("base/filelist.xml")); protected: void list(const QDir &dir); private: class Private; Private *d; }; }; #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor