#ifndef GITBASE_H #define GITBASE_H #include #include #include class GitRepository; template class GitBase : public QObject { public: GitBase(T* raw, GitRepository* parent) : QObject(parent) ,m_raw(raw) ,m_repository(parent) {} T* raw() const { return m_raw; } bool isValid() const { return m_raw != nullptr; } GitRepository* repository() const { return m_repository; } protected: T* m_raw; GitRepository* m_repository; }; #endif // GITBASE_H