summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/name_day/name_day_core.h
blob: 1e1e25e9a8389a123a79ecb668a0ffbfedd67785 (plain)
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
/**
 * FIXME:
 *
 */
#ifndef name_day_core_h
#define name_day_core_h

#pragma warning(disable:4996)

#define MIID_NAMEDAY { 0x5dc83ad2, 0x868c, 0x4c50, { 0xad, 0x33, 0x40, 0x51, 0x22, 0xe8, 0xcb, 0x38 } }


#include "calendar/calendar.h"

// WInd00z stuff
#include <windows.h>


/**
 * FIXME:
 *
 */
class name_day_core_t
{
	public:
							name_day_core_t				();
							~name_day_core_t			();
		
			void			perform_name_day_test		(void);
			void			create_menu					(void);

			int				perform_command				(const unsigned calendar_idx);

    private:				

			void			create_name_day_event		(HANDLE &handle, const string &contact_name, const string &first_name, const string &country);			
			bool			has_name_day				(const string &name_day, const string &first_name);
			void			create_sub_menu				(const calendar_t &calendar, const string &function_name);			

				vector<calendar_t>		calendars;

};


#endif // calendar_h