summaryrefslogtreecommitdiffstats
path: root/include/plist/Date.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist/Date.h')
-rw-r--r--include/plist/Date.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/plist/Date.h b/include/plist/Date.h
index 2ea830b..7026699 100644
--- a/include/plist/Date.h
+++ b/include/plist/Date.h
@@ -19,14 +19,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PLIST__DATE_H
-#define PLIST__DATE_H
+#ifndef PLIST_DATE_H
+#define PLIST_DATE_H
#include <plist/Node.h>
#include <ctime>
-
-#ifdef _WIN32
-#include <Winsock2.h>
+#ifdef _MSC_VER
+#include <winsock2.h>
+#else
+#include <sys/time.h>
#endif
namespace PList
@@ -37,17 +38,17 @@ class Date : public Node
public :
Date(Node* parent = NULL);
Date(plist_t node, Node* parent = NULL);
- Date(Date& d);
- Date& operator=(Date& d);
- Date(timeval t);
+ Date(const Date& d);
+ Date& operator=(const Date& d);
+ Date(int64_t t);
virtual ~Date();
- Node* Clone();
+ Node* Clone() const;
- void SetValue(timeval t);
- timeval GetValue();
+ void SetValue(int64_t t);
+ int64_t GetValue() const;
};
};
-#endif // PLIST__DATE_H
+#endif // PLIST_DATE_H