16 #ifndef QGSEXTERNALSTORAGEFILEWIDGET_H
17 #define QGSEXTERNALSTORAGEFILEWIDGET_H
28 #include <QFileDialog>
44 if ( qobject_cast<QgsExternalStorageFileWidget *>( sipCpp ) )
45 sipType = sipType_QgsExternalStorageFileWidget;
52 Q_PROPERTY( QString storageType READ storageType WRITE setStorageType )
53 Q_PROPERTY( QString auth READ storageAuthConfigId WRITE setStorageAuthConfigId )
54 Q_PROPERTY( QString storageUrlExpression READ storageUrlExpressionString WRITE setStorageUrlExpression )
71 void setStorageType( const QString &storageType );
79 QString storageType() const;
95 void setStorageAuthConfigId( const QString &authCfg );
101 const QString &storageAuthConfigId() const;
109 void setStorageUrlExpression( const QString &urlExpression );
118 QString storageUrlExpressionString() const;
162 void setReadOnly(
bool readOnly ) override;
166 void updateLayout() override;
168 void setSelectedFileNames( QStringList fileNames ) override;
173 void addFileWidgetScope();
175 void dragEnterEvent( QDragEnterEvent *event ) override;
177 void dropEvent( QDropEvent *event ) override;
185 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
188 void updateAcceptDrops();
190 bool mStoreInProgress = false;
198 QLabel *mProgressLabel =
nullptr;
199 QProgressBar *mProgressBar =
nullptr;
200 QToolButton *mCancelButton =
nullptr;
203 friend class TestQgsExternalResourceWidgetWrapper;
204 friend class TestQgsExternalStorageFileWidget;
207 #endif // QGSEXTERNALSTORAGEFILEWIDGET_H