RsAutoUpdatePage

- Changed the timer of RsAutoUpdatePage to a single-shot timer.
  The update can take longer than the given timer interval.

Changed status service:
- send status when the peer connects (new monitor)
- send status to all online peers only when user changed it (not in every timer tick)

MessengerWindow:
- remove load and save of custom state string in settings

p3ChatService::sendCustomState
- send empty custom state string too

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3307 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-07-20 19:45:07 +00:00
parent f7282edf33
commit e3e4c97369
15 changed files with 145 additions and 133 deletions

View file

@ -52,27 +52,19 @@ StatusMessage::~StatusMessage()
{
}
void StatusMessage::closeEvent (QCloseEvent * event)
{
QDialog::closeEvent(event);
}
/** Saves the changes on this page */
void StatusMessage::save()
{
Settings->setValueToGroup("Profile", "StatusMessage",ui.txt_StatusMessage->text());
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toStdString());
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toStdString());
close();
close();
}
/** Loads the settings for this page */
void StatusMessage::load()
{
ui.txt_StatusMessage->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
ui.txt_StatusMessage->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
}