summaryrefslogtreecommitdiffstats
path: root/src/loanitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/loanitem.h')
-rw-r--r--src/loanitem.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/loanitem.h b/src/loanitem.h
new file mode 100644
index 0000000..5e79139
--- /dev/null
+++ b/src/loanitem.h
@@ -0,0 +1,40 @@
+/***************************************************************************
+ copyright : (C) 2005-2006 by Robby Stephenson
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of version 2 of the GNU General Public License as *
+ * published by the Free Software Foundation; *
+ * *
+ ***************************************************************************/
+
+#ifndef TELLICO_LOANITEM_H
+#define TELLICO_LOANITEM_H
+
+#include "entryitem.h"
+#include "borrower.h"
+
+namespace Tellico {
+
+/**
+ * @author Robby Stephenson
+ */
+class LoanItem : public Tellico::EntryItem {
+public:
+ LoanItem(GUI::CountedItem* parent, Data::LoanPtr loan);
+
+ virtual bool isLoanItem() const { return true; }
+ Data::LoanPtr loan() { return m_loan; }
+
+ virtual void doubleClicked();
+
+private:
+ Data::LoanPtr m_loan;
+};
+
+}
+
+#endif