1 /** \file calendatprofile.h
2 \brief contain class setting profile based on calendar
3 \author Jakub Šplíchal <jakub.bzouk@gmail.com>
5 #ifndef CALENDATPROFILE_H
6 #define CALENDATPROFILE_H
10 #include <CMulticalendar.h>
12 #include <CBdayEvent.h>
17 class QStandardItemModel;
19 class QItemSelectionModel;
28 /** \class CalendarProfile
29 \brief class for setting calendar profile
30 class set profile based o rules
32 class CalendarProfile : public QWidget
36 explicit CalendarProfile(QWidget *parent = 0, QSettings *sett = 0);
42 void s_calendar_profile(QString profile);
45 void setProfiles(QStringList list_of_profiles_n);
49 CMulticalendar* multiCalendar;
50 void loadCalendarsAndEvents();
51 QVector<Calendar *> vector_of_calendars;
52 QIcon createIcon(CalendarColour col);
53 Calendar * findCalendar(int Id);
55 int wordsCount(QStringList words, QString text);
56 QString evaluateEvent( QVector<Event *> vector_ev);
57 int getProfilePriority(QString name_of_profile);
60 QString eventCurrently;
61 QString profile_Currently;
64 void setCalendarModel();
66 QStandardItemModel *model_of_calendars;
67 QItemSelectionModel *selModel_calendars;
68 QStandardItemModel *model_of_profiles;
69 QItemSelectionModel* selModel_profiles;
74 void event_start(Event * ev);
75 void event_stop(Event* ev);
77 void ChangeInCalendarsCheck();
78 void calendarTrack(QString);
81 #endif // CALENDATPROFILE_H