added a forgotten time(NULL) in notifyqt.cpp

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1061 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-03-01 15:18:34 +00:00
parent 14dc2fbf7e
commit 56b3370cd1
5 changed files with 31 additions and 7 deletions

View file

@ -54,6 +54,7 @@
#define SETTING_NEWSFEED_FLAGS "NewsFeedFlags"
#define SETTING_CHAT_FLAGS "ChatFlags"
#define SETTING_NOTIFY_FLAGS "NotifyFlags"
#define SETTING_CHAT_AVATAR "ChatAvatar"
/* Default Retroshare Settings */
#define DEFAULT_OPACITY 100
@ -114,6 +115,15 @@ RshareSettings::RshareSettings()
}
/** Gets/sets the currently saved chat avatar. */
QImage RshareSettings::getChatAvatar() const
{
return value(SETTING_CHAT_AVATAR).value<QImage>();
}
void RshareSettings::setChatAvatar(const QImage& I)
{
setValue(SETTING_CHAT_AVATAR,I) ;
}
/** Gets the currently preferred language code for Rshare. */
QString RshareSettings::getLanguageCode()

View file

@ -1,7 +1,7 @@
/****************************************************************
* This file is distributed under the following license:
*
* Copyright (c) 2006-2007, crypton
* This file is distributed under the following license:
*
* Copyright (c) 2006-2007, crypton
* Copyright (c) 2006, Matt Edman, Justin Hipple
*
* This program is free software; you can redistribute it and/or
@ -75,8 +75,15 @@ public:
/** Returns true if RetroShare should start on system boot. */
bool runRetroshareOnBoot();
/** Set whether to run RetroShare on system boot. */
void setRunRetroshareOnBoot(bool run);
void setRunRetroshareOnBoot(bool run);
/** Returns the chat avatar. Returns a null image if no avatar is saved. */
QImage getChatAvatar() const ;
/** set the chat avatar. Returns a null image if no avatar is saved. */
void setChatAvatar(const QImage&) ;
/* Get the destination log file. */