-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
781 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
#include <vector> | ||
#include <fmt/core.h> | ||
#include <fmt/format.h> | ||
#include <gromox/defs.h> | ||
#include <gromox/ical.hpp> | ||
#include <gromox/mapidefs.h> | ||
#include <gromox/mapi_types.hpp> | ||
|
||
using namespace gromox; | ||
|
||
template<> struct fmt::formatter<ICAL_TIME> | ||
{ | ||
auto parse(format_parse_context &ctx) { return ctx.begin(); } | ||
format_context::iterator format(const ICAL_TIME &t, format_context &ctx) const | ||
{ | ||
return fmt::format_to(ctx.out(), "{:04}{:02}{:02}T{:02}{:02}{:02}", | ||
t.year, t.month, t.day, t.hour, t.minute, t.second); | ||
} | ||
}; | ||
|
||
struct event | ||
{ | ||
time_t start_time = 0, end_time = 0; | ||
EXCEPTIONINFO *ei = nullptr; | ||
EXTENDEDEXCEPTION *xe = nullptr; | ||
}; | ||
|
||
struct freebusy_tags | ||
{ | ||
freebusy_tags(const char *); | ||
|
||
uint32_t apptstartwhole = 0, apptendwhole = 0, busystatus = 0, recurring = 0, | ||
apptrecur = 0, apptsubtype = 0, private_flag = 0, apptstateflags = 0, | ||
clipend = 0, location = 0, reminderset = 0, globalobjectid = 0, | ||
timezonestruct = 0; | ||
}; | ||
|
||
extern GX_EXPORT bool get_freebusy(const char *, const char *, uint64_t, uint64_t, | ||
std::vector<freebusy_event> &); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.