CXpcModel.h
Go to the documentation of this file.
1 #ifndef icomp_CXpcModel_included
2 #define icomp_CXpcModel_included
3 
4 
5 // Qt includes
6 #include <QtCore/QStringList>
7 
8 // ACF includes
9 #include <iser/ISerializable.h>
10 
11 
12 namespace icomp
13 {
14 
19 {
20 public:
21  // gui interface (for editing)
22  const QStringList& GetConfFilesList() const;
23  void SetConfFilesList(const QStringList& list);
24  const QStringList& GetPackageDirsList() const;
25  void SetPackageDirsList(const QStringList& list);
26  const QStringList& GetPackagesList() const;
27  void SetPackagesList(const QStringList& list);
28  const QStringList& GetRegistryFilesList() const;
29  void SetRegistryFilesList(const QStringList& list);
30 
31  // program interface (for loading XPC files)
32  int GetConfigFilesCount() const;
33  QString GetConfFile(int) const;
34  void AddConfFile(const QString& path);
35  int GetPackageDirsCount() const;
36  QString GetPackageDir(int) const;
37  void AddPackageDir(const QString& path);
38  int GetPackagesCount() const;
39  QString GetPackage(int) const;
40  void AddPackage(const QString& path);
41  int GetRegistryFilesCount() const;
42  QString GetRegistryFile(int) const;
43  void AddRegistryFile(const QString& path);
44 
45  // iser::ISerializable interface
46  bool Serialize(iser::IArchive& archive);
47 
48 private:
49  QStringList m_confFiles;
50  QStringList m_packageDirs;
51  QStringList m_packages;
52  QStringList m_registryFiles;
53 };
54 
55 
56 } // namespace icomp
57 
58 
59 #endif // !icomp_CXpcModel_included
60 
61 
void AddConfFile(const QString &path)
void SetPackagesList(const QStringList &list)
QString GetRegistryFile(int) const
void SetPackageDirsList(const QStringList &list)
bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
Data model for registry configuration files (XPC).
Definition: CXpcModel.h:18
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
QString GetPackage(int) const
int GetRegistryFilesCount() const
void AddPackage(const QString &path)
QString GetPackageDir(int) const
void AddRegistryFile(const QString &path)
const QStringList & GetPackageDirsList() const
int GetPackagesCount() const
int GetConfigFilesCount() const
Represent input/output persistence archive.
Definition: IArchive.h:30
void SetRegistryFilesList(const QStringList &list)
void SetConfFilesList(const QStringList &list)
QString GetConfFile(int) const
const QStringList & GetConfFilesList() const
int GetPackageDirsCount() const
void AddPackageDir(const QString &path)
const QStringList & GetRegistryFilesList() const
const QStringList & GetPackagesList() const

© 2007-2017 Witold Gantzke and Kirill Lepskiy