aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/sbkdate.cpp
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2012-04-17 12:30:49 -0400
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-04-30 19:44:29 +0200
commit8c5297bb10daf508f787646b66a2e4c21e4e15f6 (patch)
treee85bad50a08023f4296b9e02357c136e003419f3 /tests/libsample/sbkdate.cpp
parent815159e28d786d83c984670cd8867d5ce3d314f4 (diff)
Don't use inline methods in dllexported classes to keep VC++ happy
Change-Id: I2e954bedfe4699a621047a757b3dbd202655e97b Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample/sbkdate.cpp')
-rw-r--r--tests/libsample/sbkdate.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/libsample/sbkdate.cpp b/tests/libsample/sbkdate.cpp
new file mode 100644
index 000000000..d5f86c687
--- /dev/null
+++ b/tests/libsample/sbkdate.cpp
@@ -0,0 +1,42 @@
+/*
+ * This file is part of the Shiboken Python Binding Generator project.
+ *
+ * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * Contact: PySide team <contact@pyside.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "sbkdate.h"
+
+SbkDate::SbkDate(int d, int m, int y) : m_d(d), m_m(m), m_y(y)
+{
+}
+
+int SbkDate::day() const
+{
+ return m_d;
+}
+
+int SbkDate::month() const
+{
+ return m_m;
+}
+
+int SbkDate::year() const
+{
+ return m_y;
+}