forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomEvent.h
53 lines (42 loc) · 1.02 KB
/
CustomEvent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// CustomEvent.h: interface for the CCustomEvent class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include "TString.h"
#include "NSMutableArray.h"
//==============================================================
//
//==============================================================
class CCustomEvent
{
public:
CCustomEvent();
virtual ~CCustomEvent();
int nTithi;
int nMasa;
int nClass;
int nFastType;
int nVisible;
int nStartYear;
short int nUsed;
short int nDeleted;
short int nSpec;
TString strFastSubject;
TString strText;
};
class CCustomEventList
{
public:
static void Export(const char * pszFile, int format);
static int OpenFile(const char * pszFile);
static int SaveFile(const char * pszFile);
static int Count(void);
static CCustomEvent * EventAtIndex(int index);
static int SetOldStyleFasting(int i);
static NSMutableArray<CCustomEvent> list;
public:
CCustomEventList() { }
~CCustomEventList() { clear(); };
CCustomEvent * add(void);
void clear();
};