[glom] Add missing files.



commit dde78ddd2b4e29d352e50fb16df36edbbda725ef
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jan 24 09:22:51 2012 +0100

    Add missing files.

 glom/libglom/data_structure/database_title.cc |   44 +++++++++++++++++++++++
 glom/libglom/data_structure/database_title.h  |   46 +++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/glom/libglom/data_structure/database_title.cc b/glom/libglom/data_structure/database_title.cc
new file mode 100644
index 0000000..4297b33
--- /dev/null
+++ b/glom/libglom/data_structure/database_title.cc
@@ -0,0 +1,44 @@
+/* Glom
+ *
+ * Copyright (C) 2001-2004 Murray Cumming
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <libglom/data_structure/database_title.h>
+
+namespace Glom
+{
+
+DatabaseTitle::DatabaseTitle()
+{
+  m_translatable_item_type = TRANSLATABLE_TYPE_DATABASE_TITLE;
+}
+
+DatabaseTitle::DatabaseTitle(const DatabaseTitle& src)
+: TranslatableItem(src)
+{
+}
+
+DatabaseTitle& DatabaseTitle::operator=(const DatabaseTitle& src)
+{
+  TranslatableItem::operator=(src);
+
+  return *this;
+}
+
+
+} //namespace Glom
diff --git a/glom/libglom/data_structure/database_title.h b/glom/libglom/data_structure/database_title.h
new file mode 100644
index 0000000..6e0a34e
--- /dev/null
+++ b/glom/libglom/data_structure/database_title.h
@@ -0,0 +1,46 @@
+/* Glom
+ *
+ * Copyright (C) 2001-2004 Murray Cumming
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef GLOM_DATASTRUCTURE_DATABASE_TITLE_H
+#define GLOM_DATASTRUCTURE_DATABASE_TITLE_H
+
+#include <libglom/data_structure/translatable_item.h>
+
+namespace Glom
+{
+
+/** This is a separate class, instead of just deriving Document from 
+ * TranslatableItem, to avoid the need to use Document via sharedptr.
+ */
+class DatabaseTitle
+ : public TranslatableItem
+{
+public:
+  DatabaseTitle();
+  DatabaseTitle(const DatabaseTitle& src);
+  DatabaseTitle& operator=(const DatabaseTitle& src);
+};
+
+} //namespace Glom
+
+#endif //GLOM_DATASTRUCTURE_DATABASE_TITLE_H
+
+
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]