Files
MuditaOS/source/MessageType.hpp
Mati f0b2e6aedf WiP: db performance tests
Extended SMS record API
2019-06-10 14:56:05 +02:00

61 lines
2.3 KiB
C++

/*
* @file MessageType.hpp
* @author Robert Borzecki (robert.borzecki@mudita.com)
* @date 3 cze 2019
* @brief
* @copyright Copyright (C) 2019 mudita.com
* @details
*/
#ifndef SOURCE_MESSAGETYPE_HPP_
#define SOURCE_MESSAGETYPE_HPP_
enum class MessageType {
MessageTypeUninitialized = 0,
//eink messages
EinkStateRequest, //message is used to pull status of the eink. If eink is ready to display image
EinkImageData, //message with pointer to the image data for displaying
EinkTemperatureUpdate, //message sent from timer handler. Message forces service to update temperature measured by the eink.
//gui messages
GUICommands, // list of rendering commands
GUIFocusInfo, // information about application that gained focus
GUIDisplayReady, //message that informs gui service that service controlling display device is ready for new buffer data.
GUIRenderingFinished, //Message is sent from the worker when all rendering is finished.
//DB messages
DBSettingsGet, // get current settings from database
DBSettingsUpdate, // update settings
DBSMSAdd, // Add new sms record
DBSMSRemove, // Remove specified SMS record
DBSMSUpdate, // Update specified SMS record
DBSMSGetSMSLimitOffset, // Get SMS records by limit,offset
DBSMSGetSMSLimitOffsetByThreadID, // Get SMS records by limit,offset with specified ThreadID field
DBThreadGet, // Get thread by ID
DBThreadRemove, // Remove thread by ID
DBThreadGetLimitOffset, // Get Thread record by limit,offset
DBContactAdd, // Add contact record
DBContactRemove, // Remove contact remove
DBContactUpdate, // Update contact remove
DBContactGetLimitOffset, // Get contact records by limit,offset
DBContactGetCount, // Get contacts count
//application manager
APMSwitch, //request to switch to given application, optionally also to specified window
APMSwitchData, //request to switch to given application, optionally also to specified window with provided data.
APMSwitchPrevApp, //Request to switch to previous application.
APMConfirmSwitch, //Used when application confirms that it is loosing focus and also when application confirms that is has gained focus
APMConfirmClose, //Sent by application to confirm completion of the close procedure
//keyboard messages
KBDKeyEvent
};
#endif /* SOURCE_MESSAGETYPE_HPP_ */