16#ifndef QGSEXTERNALSTORAGEFILEWIDGET_H
17#define QGSEXTERNALSTORAGEFILEWIDGET_H
45 if ( qobject_cast<QgsExternalStorageFileWidget *>( sipCpp ) )
46 sipType = sipType_QgsExternalStorageFileWidget;
53 Q_PROPERTY( QString storageType READ storageType WRITE setStorageType )
54 Q_PROPERTY( QString auth READ storageAuthConfigId WRITE setStorageAuthConfigId )
55 Q_PROPERTY( QString storageUrlExpression READ storageUrlExpressionString WRITE setStorageUrlExpression )
72 void setStorageType(
const QString &storageType );
80 QString storageType()
const;
96 void setStorageAuthConfigId(
const QString &authCfg );
102 const QString &storageAuthConfigId()
const;
110 void setStorageUrlExpression(
const QString &urlExpression );
119 QString storageUrlExpressionString()
const;
174 void addFileWidgetScope();
176 void dragEnterEvent( QDragEnterEvent *event )
override;
178 void dropEvent( QDropEvent *event )
override;
186 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
189 void updateAcceptDrops();
191 bool mStoreInProgress =
false;
195 std::unique_ptr< QgsExpression > mStorageUrlExpression;
199 QLabel *mProgressLabel =
nullptr;
200 QProgressBar *mProgressBar =
nullptr;
201 QToolButton *mCancelButton =
nullptr;
204 friend class TestQgsExternalResourceWidgetWrapper;
205 friend class TestQgsExternalStorageFileWidget;
Single scope for storing variables and functions for use within a QgsExpressionContext.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Class for parsing and evaluation of expressions (formerly called "search strings").
Abstract interface for external storage - to be implemented by various backends and registered in Qgs...
A bar for displaying non-blocking messages to the user.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)