~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

« back to all changes in this revision

Viewing changes to src/UbuntuToolkit/adapters/alarmsadapter_organizer.cpp

  • Committer: Tarmac
  • Author(s): Loïc Molinari
  • Date: 2016-09-12 16:04:18 UTC
  • mfrom: (2090.1.7 uitk-test)
  • Revision ID: tarmac-20160912160418-3murc3kypk2jwamk
Fixed, cleaned up and standardised header inclusions.

Apart from the clean up and the readability improvements, this fixes a bunch of broken private header inclusions (#include "foo_p.h" in private headers instead of "private/foo_p.h" or better <Project/private/foo_p.h>), now all the private headers of the UITK can be included by the users withour compilation issues. It also removes a bunch of direct includes from sources and a few INCLUDEPATHs hacks.

See the CODING file for more details.

Approved by ubuntu-sdk-build-bot, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Author: Zsombor Egri <zsombor.egri@canonical.com>
17
17
 */
18
18
 
19
 
#include "ucalarm_p.h"
20
 
#include "ucalarm_p_p.h"
21
 
#include "alarmmanager_p_p.h"
22
 
#include "alarmsadapter_p.h"
23
 
#include <qorganizertodooccurrence.h>
 
19
#include "adapters/alarmsadapter_p.h"
24
20
 
25
21
#include <QtCore/QFile>
26
22
#include <QtCore/QDir>
30
26
#include <QtCore/QJsonObject>
31
27
#include <QtCore/QJsonArray>
32
28
#include <QtCore/QDebug>
 
29
#include <QtOrganizer/QtOrganizer>
 
30
 
 
31
#include "alarmmanager_p_p.h"
 
32
#include "ucalarm_p_p.h"
33
33
 
34
34
#define ALARM_DATABASE          "%1/alarms.json"
35
35
/*