gitoid.h 295 B

123456789101112131415161718
  1. #ifndef GITOID_H
  2. #define GITOID_H
  3. #include <QObject>
  4. #include <git2/oid.h>
  5. class GitOid : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit GitOid(const git_oid* oid = 0, QObject *parent = 0);
  10. QString toString() const;
  11. private:
  12. git_oid m_oid;
  13. bool isValid;
  14. };
  15. #endif // GITOID_H