40 lines
1 KiB
C
40 lines
1 KiB
C
/*
|
|
* Copyright 2024, My Name <my@email.address>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <Message.h>
|
|
#include <String.h>
|
|
#include <Path.h>
|
|
#include <Directory.h>
|
|
#include <File.h>
|
|
|
|
static const uint32 kShowStatus = 'stat';
|
|
static const uint32 kCheckKey = 'chkK';
|
|
static const uint32 kMsgNewFile = 'fNEW';
|
|
static const uint32 kMsgOpenFile = 'fOPN';
|
|
static const uint32 kMsgSaveFile = 'fSAV';
|
|
static const uint32 kModelSelected = 'mSEL';
|
|
static const uint32 kRequestModels = 'mREQ';
|
|
|
|
static const uint32 kViewJSON = 'vJSN';
|
|
static const uint32 kSettingsUpdate = 'sUPD';
|
|
static const char* kSettingsFileName = "bedumber_settings.bmessage";
|
|
|
|
|
|
static const uint32 kPulse = 'plse';
|
|
|
|
static const uint32 kSendPrompt = 'kspt';
|
|
static const uint32 kQuestionChanged = 'kqch';
|
|
|
|
|
|
|
|
status_t SaveMessageToFile(const BMessage& message, const char* fileName);
|
|
BMessage LoadMessageFromFile(const char* fileName);
|
|
|
|
#endif // UTILS_H
|