Chat-O-Matic/application/views/RenderView.h
Jaidyn Ann 5966df1a34 Print a 'date divider' when the day changes
I.E., if one message is sent on 2021-05-02 and the next on 2021-05-03, a
divider displaying the new date is printed before the second message.
2021-07-25 11:28:07 -05:00

26 lines
560 B
C++

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef _RENDER_VIEW_H
#define _RENDER_VIEW_H
#include <librunview/RunView.h>
class RenderView : public RunView {
public:
RenderView(const char* name);
void AppendMessage(const char* nick, const char* message,
rgb_color nameColor, time_t time = 0);
void AppendGeneric(const char* message);
void AppendTimestamp(time_t time = 0);
private:
int fLastDay;
int fLastYear;
};
#endif // _RENDER_VIEW_H