diff options
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/db/attachguard.h')
| -rw-r--r-- | SQLiteStudio3/coreSQLiteStudio/db/attachguard.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/db/attachguard.h b/SQLiteStudio3/coreSQLiteStudio/db/attachguard.h new file mode 100644 index 0000000..be708b8 --- /dev/null +++ b/SQLiteStudio3/coreSQLiteStudio/db/attachguard.h @@ -0,0 +1,24 @@ +#ifndef ATTACHGUARD_H +#define ATTACHGUARD_H + +#include <QSharedPointer> + +class Db; + +class GuardedAttach +{ + public: + GuardedAttach(Db* db, Db* attachedDb, const QString& attachName); + virtual ~GuardedAttach(); + + QString getName() const; + + private: + Db* db = nullptr; + Db* attachedDb = nullptr; + QString name; +}; + +typedef QSharedPointer<GuardedAttach> AttachGuard; + +#endif // ATTACHGUARD_H |
