CFileNamingParams.h
Go to the documentation of this file.
1 #ifndef ifileproc_CFileNamingParams_included
2 #define ifileproc_CFileNamingParams_included
3 
4 
5 // Qt includes
6 #include <QtCore/QStringList>
7 
8 // ACF includes
9 #include <icomp/CComponentBase.h>
10 
11 // AcfSln includes
13 
14 
15 namespace ifileproc
16 {
17 
18 
20 {
21 public:
23 
24  // reimplemented (ifileproc::IFileNamingParams)
26  virtual void SetOverwriteStrategy(OverwriteStrategy overwriteStrategy);
27  virtual QString GetPrefix() const;
28  virtual void SetPrefix(const QString& prefix);
29  virtual QString GetSuffix() const;
30  virtual void SetSuffix(const QString& suffix);
31  virtual QStringList GetPatternsToRemove() const;
32  virtual void SetPatternsToRemove(const QStringList& patternsToRemove);
33 
34  // reimplemented (iser::ISerializable)
35  virtual bool Serialize(iser::IArchive& archive);
36 
37  // reimplemented (istd::IChangeable)
38  virtual int GetSupportedOperations() const;
39  virtual bool CopyFrom(const istd::IChangeable& object, istd::IChangeable::CompatibilityMode mode = istd::IChangeable::CM_WITHOUT_REFS);
40  virtual bool IsEqual(const istd::IChangeable& object) const;
41  virtual istd::IChangeable* CloneMe(istd::IChangeable::CompatibilityMode mode = istd::IChangeable::CM_WITHOUT_REFS) const;
42  virtual bool ResetData(CompatibilityMode mode = CM_WITHOUT_REFS);
43 
44 protected:
46  QString m_suffix;
47  QString m_prefix;
48  QStringList m_patternsToRemove;
49 };
50 
51 
52 } // namespace ifileproc
53 
54 
55 #endif // !ifileproc_CFileNamingParams_included
56 
57 
virtual bool CopyFrom(const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS)
virtual bool IsEqual(const istd::IChangeable &object) const
virtual int GetSupportedOperations() const
virtual void SetPrefix(const QString &prefix)
Set prefix of the file.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS)
OverwriteStrategy m_overwriteStrategy
virtual istd::IChangeable * CloneMe(istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const
virtual void SetOverwriteStrategy(OverwriteStrategy overwriteStrategy)
virtual void SetSuffix(const QString &suffix)
Get suffix of the file.
virtual QString GetSuffix() const
Set suffix of the file.
virtual QString GetPrefix() const
Get prefix of the file.
virtual OverwriteStrategy GetOverwriteStrategy() const
Get used strategy for possible overwriting of existing files.
virtual void SetPatternsToRemove(const QStringList &patternsToRemove)
Set list of text patterns, that must be removed from the output file name.
Interface for calculation parameters of the new file name for any file item.
virtual QStringList GetPatternsToRemove() const
Get list of text patterns, that must be removed from the output file name.
virtual bool Serialize(iser::IArchive &archive)

© 2007-2017 Witold Gantzke and Kirill Lepskiy