5.2.1. Includes and enumerations in main.cpp

The main.cpp file starts with include statements and enumerations as shown in Example 5.1:

Example 5.1. Includes and enumerations in main.cpp

#include <stdio.h>
#include <stdexcept>
#include <string.h>
#include <stdlib.h>
#ifdef MDE_OS_WIN32
#include <direct.h>
#else
#include <unistd.h>
#endif
#include <limits.h>
#include "lotion.h"

#include "applets/lightshow/lightshow.h"
#include "applets/browser/browser.h"
#include "applets/slideshow_presentation/slideshow_presentation.h"

enum applets {
    APPLET_PHOTO_BROWSER = 1 << 0,
    APPLET_PRESENTATION = 1 << 3,
    APPLET_SLIDESHOW_PRESENTATION = 1 << 4,
    APPLET_BUZZWORD = 1 << 5,
    APPLET_PLANET = 1 << 6,
    APPLET_LIGHTSHOW = 1 << 7,
    APPLET_BROWSER = 1 << 9,

    APPLETS_ALL = 0xFFFF,
    APPLETS_DEFAULT = APPLETS_ALL & ~APPLET_BROWSER
};

enum themes {
    THEME_BLUE = 1, THEME_ROBOT = 2, THEME_MINIMAL = 3
};

enum input_modes {
    INPUT_MODE_MOUSE = 1, INPUT_MODE_TOUCH = 2
};

struct input_descriptor {
    input_modes mode;
    MDE::String arg;
};

Copyright © 2010 ARM. All rights reserved.ARM DUI 0527A‑02a
Non-Confidential - Draft - BetaID070710