Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: fpdfsdk/include/fsdk_baseannot.h

Issue 2043873006: Change time_t conversion operator to ToTime_t() function (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comment Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fsdk_baseannot.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 CPDFSDK_DateTime(); 31 CPDFSDK_DateTime();
32 CPDFSDK_DateTime(const CFX_ByteString& dtStr); 32 CPDFSDK_DateTime(const CFX_ByteString& dtStr);
33 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime); 33 CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime);
34 CPDFSDK_DateTime(const FX_SYSTEMTIME& st); 34 CPDFSDK_DateTime(const FX_SYSTEMTIME& st);
35 35
36 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime); 36 CPDFSDK_DateTime& operator=(const CPDFSDK_DateTime& datetime);
37 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st); 37 CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st);
38 bool operator==(const CPDFSDK_DateTime& datetime) const; 38 bool operator==(const CPDFSDK_DateTime& datetime) const;
39 bool operator!=(const CPDFSDK_DateTime& datetime) const; 39 bool operator!=(const CPDFSDK_DateTime& datetime) const;
40 bool operator>(const CPDFSDK_DateTime& datetime) const;
41 bool operator>=(const CPDFSDK_DateTime& datetime) const;
42 bool operator<(const CPDFSDK_DateTime& datetime) const;
43 bool operator<=(const CPDFSDK_DateTime& datetime) const;
44 operator time_t();
45 40
46 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr); 41 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr);
47 CFX_ByteString ToCommonDateTimeString(); 42 CFX_ByteString ToCommonDateTimeString();
48 CFX_ByteString ToPDFDateTimeString(); 43 CFX_ByteString ToPDFDateTimeString();
49 void ToSystemTime(FX_SYSTEMTIME& st); 44 void ToSystemTime(FX_SYSTEMTIME& st);
45 time_t ToTime_t() const;
50 CPDFSDK_DateTime ToGMT() const; 46 CPDFSDK_DateTime ToGMT() const;
51 CPDFSDK_DateTime& AddDays(short days); 47 CPDFSDK_DateTime& AddDays(short days);
52 CPDFSDK_DateTime& AddSeconds(int seconds); 48 CPDFSDK_DateTime& AddSeconds(int seconds);
53 49
54 void ResetDateTime(); 50 void ResetDateTime();
55 51
56 struct FX_DATETIME { 52 struct FX_DATETIME {
57 int16_t year; 53 int16_t year;
58 uint8_t month; 54 uint8_t month;
59 uint8_t day; 55 uint8_t day;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 const CFX_ByteString& sAPState = ""); 193 const CFX_ByteString& sAPState = "");
198 194
199 protected: 195 protected:
200 CPDF_Annot* m_pAnnot; 196 CPDF_Annot* m_pAnnot;
201 197
202 private: 198 private:
203 FX_BOOL CreateFormFiller(); 199 FX_BOOL CreateFormFiller();
204 }; 200 };
205 201
206 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ 202 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseannot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698