24 #ifndef DIGIKAM_DBINARY_IFACE_H
25 #define DIGIKAM_DBINARY_IFACE_H
30 #include <QStringList>
31 #include <QPushButton>
35 #include <QGridLayout>
52 const QString& projectName,
54 const QString& pluginName,
55 const QStringList& args = QStringList(),
56 const QString& desc = QString()
59 const QString& minimalVersion,
60 const QString& header,
62 const QString& projectName,
64 const QString& pluginName,
65 const QStringList& args = QStringList(),
66 const QString& desc = QString()
72 bool isFound()
const {
return m_isFound; }
73 const QString& version()
const;
74 bool versionIsRight()
const;
75 bool versionIsRight(
const float)
const;
76 inline bool isValid()
const {
return (m_isFound && versionIsRight()); }
80 virtual void setup(
const QString& prev = QString());
81 virtual bool checkDir() {
return checkDirForPath(m_pathDir); }
82 virtual bool checkDirForPath(
const QString& path);
83 virtual bool recheckDirectories();
85 virtual QString path(
const QString& dir)
const;
86 virtual QString
path()
const {
return path(m_pathDir); }
87 virtual QString
directory()
const {
return m_pathDir; }
88 virtual QString
baseName()
const {
return m_binaryBaseName; }
92 virtual QUrl
url()
const {
return m_url; }
95 static QString goodBaseName(
const QString& b);
99 virtual void slotNavigateAndCheck();
100 virtual void slotAddPossibleSearchDirectory(
const QString& dir);
101 virtual void slotAddSearchDirectory(
const QString& dir);
110 QString findHeader(
const QStringList& output,
const QString& header)
const;
111 virtual bool parseHeader(
const QString& output);
112 void setVersion(QString& version);
114 virtual QString readConfig();
115 virtual void writeConfig();
Definition: dbinaryiface.h:46
virtual QUrl url() const
Definition: dbinaryiface.h:92
QSet< QString > m_searchPaths
Definition: dbinaryiface.h:144
const bool m_checkVersion
Definition: dbinaryiface.h:119
bool isValid() const
Definition: dbinaryiface.h:76
QLabel * m_versionLabel
Definition: dbinaryiface.h:138
QLabel * m_binaryLabel
Definition: dbinaryiface.h:137
void signalSearchDirectoryAdded(const QString &dir)
virtual QString baseName() const
Definition: dbinaryiface.h:88
const QString & description() const
Definition: dbinaryiface.h:78
virtual bool checkDir()
Definition: dbinaryiface.h:81
virtual QString directory() const
Definition: dbinaryiface.h:87
const QString m_configGroup
Definition: dbinaryiface.h:123
const QString m_projectName
Definition: dbinaryiface.h:126
const QString m_minimalVersion
Definition: dbinaryiface.h:122
QFrame * m_pathWidget
Definition: dbinaryiface.h:136
bool isFound() const
Definition: dbinaryiface.h:72
QLabel * m_downloadButton
Definition: dbinaryiface.h:140
virtual QString projectName() const
Definition: dbinaryiface.h:93
bool m_isFound
Definition: dbinaryiface.h:129
bool developmentVersion() const
Definition: dbinaryiface.h:77
QString m_description
Definition: dbinaryiface.h:134
QLabel * m_statusIcon
Definition: dbinaryiface.h:142
virtual QString path() const
Definition: dbinaryiface.h:86
QPushButton * m_pathButton
Definition: dbinaryiface.h:139
const QString m_binaryBaseName
Definition: dbinaryiface.h:124
const QStringList m_binaryArguments
Definition: dbinaryiface.h:125
const int m_headerLine
Definition: dbinaryiface.h:121
QString m_version
Definition: dbinaryiface.h:132
const QString m_headerStarts
Definition: dbinaryiface.h:120
QLineEdit * m_lineEdit
Definition: dbinaryiface.h:141
const QUrl m_url
Definition: dbinaryiface.h:127
bool m_developmentVersion
Definition: dbinaryiface.h:130
virtual QString minimalVersion() const
Definition: dbinaryiface.h:89
QString m_pathDir
Definition: dbinaryiface.h:133
Definition: datefolderview.cpp:43