mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
added lots of debugging info. Fixed stupid bug supplying wrong AES key. Distant chat works!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-GenericTunneling@6325 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5657ab9796
commit
1e5a7a057c
5 changed files with 19 additions and 10 deletions
|
@ -71,7 +71,7 @@ static NewsFeed *instance = NULL;
|
|||
|
||||
/** Constructor */
|
||||
NewsFeed::NewsFeed(QWidget *parent)
|
||||
: MainPage (parent)
|
||||
: RsAutoUpdatePage(1000,parent)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
setupUi(this);
|
||||
|
@ -83,9 +83,9 @@ NewsFeed::NewsFeed(QWidget *parent)
|
|||
connect(removeAllButton, SIGNAL(clicked()), this, SLOT(removeAll()));
|
||||
connect(feedOptionsButton, SIGNAL(clicked()), this, SLOT(feedoptions()));
|
||||
|
||||
QTimer *timer = new QTimer(this);
|
||||
timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateFeed()));
|
||||
timer->start(1000);
|
||||
// QTimer *timer = new QTimer(this);
|
||||
// timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateFeed()));
|
||||
// timer->start(1000);
|
||||
}
|
||||
|
||||
NewsFeed::~NewsFeed()
|
||||
|
@ -95,7 +95,7 @@ NewsFeed::~NewsFeed()
|
|||
}
|
||||
}
|
||||
|
||||
void NewsFeed::updateFeed()
|
||||
void NewsFeed::updateDisplay()
|
||||
{
|
||||
if (!rsNotify)
|
||||
return;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "ui_NewsFeed.h"
|
||||
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
#include <retroshare-gui/RsAutoUpdatePage.h>
|
||||
class RsFeedItem;
|
||||
|
||||
class ForumNewItem;
|
||||
|
@ -33,7 +34,7 @@ class ChanMsgItem;
|
|||
class ChatMsgItem;
|
||||
class FeedNotify;
|
||||
|
||||
class NewsFeed : public MainPage, public FeedHolder, private Ui::NewsFeed
|
||||
class NewsFeed : public RsAutoUpdatePage, public FeedHolder, private Ui::NewsFeed
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -52,6 +53,7 @@ public:
|
|||
static void testFeeds(uint notifyFlags);
|
||||
static void testFeed(FeedNotify *feedNotify);
|
||||
|
||||
virtual void updateDisplay();
|
||||
signals:
|
||||
void newsFeedChanged(int count);
|
||||
|
||||
|
@ -59,7 +61,6 @@ private slots:
|
|||
// void toggleChanMsgItems(bool on);
|
||||
void feedoptions();
|
||||
|
||||
void updateFeed();
|
||||
void removeAll();
|
||||
void itemDestroyed(QObject*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue