89905fe23c
The conversation view now displays the protocol icon and room subject. Messages for receiving room names (IM_ROOM_NAME) and subjects (IM_ROOM_SUBJECT) were added, and support for the latter was given to the XMPP add-on. New message APIs were added, and several (room-related) im_what values were moved into the 150s/160s. UserItem::_TintColor() was moved to CayaUtils, because it can be used in several different contexts.
35 lines
838 B
C
35 lines
838 B
C
/*
|
|
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _CAYA_UTILS_H
|
|
#define _CAYA_UTILS_H
|
|
|
|
#include <image.h>
|
|
|
|
#include <GraphicsDefs.h>
|
|
#include <Mime.h>
|
|
#include <Resources.h>
|
|
|
|
#include "CayaConstants.h"
|
|
|
|
const char* CayaStatusToString(CayaStatus status);
|
|
|
|
BResources* CayaResources();
|
|
|
|
const char* CayaAccountsPath();
|
|
const char* CayaAccountPath(const char* signature);
|
|
const char* CayaAccountPath(const char* signature, const char* subsignature);
|
|
|
|
const char* CayaCachePath();
|
|
const char* CayaLogPath(const char* signature, const char* subsignature);
|
|
|
|
// Will return a tinted color― light or dark― based on brightness.
|
|
rgb_color CayaTintColor(rgb_color color, int severity);
|
|
|
|
extern "C" status_t our_image(image_info& image);
|
|
|
|
|
|
#endif // _CAYA_UTILS_H
|
|
|