forked from blue/squawk
hopefully end of refactoring of vcard to Info widget
This commit is contained in:
parent
bf11d8a74e
commit
e4a2728ef8
20 changed files with 268 additions and 1717 deletions
17
ui/squawk.h
17
ui/squawk.h
|
@ -36,12 +36,13 @@
|
|||
#include "widgets/newcontact.h"
|
||||
#include "widgets/joinconference.h"
|
||||
#include "models/roster.h"
|
||||
#include "widgets/vcard/vcard.h"
|
||||
#include "widgets/info/info.h"
|
||||
#include "widgets/settings/settings.h"
|
||||
#include "widgets/about.h"
|
||||
|
||||
#include "shared/shared.h"
|
||||
#include "shared/global.h"
|
||||
#include "shared/info.h"
|
||||
|
||||
namespace Ui {
|
||||
class Squawk;
|
||||
|
@ -72,8 +73,8 @@ signals:
|
|||
void renameContactRequest(const QString& account, const QString& jid, const QString& newName);
|
||||
void addRoomRequest(const QString& account, const QString& jid, const QString& nick, const QString& password, bool autoJoin);
|
||||
void removeRoomRequest(const QString& account, const QString& jid);
|
||||
void requestVCard(const QString& account, const QString& jid);
|
||||
void uploadVCard(const QString& account, const Shared::VCard& card);
|
||||
void requestInfo(const QString& account, const QString& jid);
|
||||
void updateInfo(const QString& account, const Shared::Info& info);
|
||||
void changeDownloadsPath(const QString& path);
|
||||
void changeTray(bool enabled, bool hide);
|
||||
|
||||
|
@ -93,7 +94,7 @@ public:
|
|||
public slots:
|
||||
void writeSettings();
|
||||
void stateChanged(Shared::Availability state);
|
||||
void responseVCard(const QString& jid, const Shared::VCard& card);
|
||||
void responseInfo(const Shared::Info& info);
|
||||
void select(QModelIndex index);
|
||||
|
||||
private:
|
||||
|
@ -104,7 +105,7 @@ private:
|
|||
About* about;
|
||||
Models::Roster& rosterModel;
|
||||
QMenu* contextMenu;
|
||||
std::map<QString, VCard*> vCards;
|
||||
std::map<QString, UI::Info*> infoWidgets;
|
||||
Conversation* currentConversation;
|
||||
QModelIndex restoreSelection;
|
||||
bool needToRestore;
|
||||
|
@ -123,9 +124,9 @@ private slots:
|
|||
void onAccountsChanged();
|
||||
void onAccountsClosed();
|
||||
void onPreferencesClosed();
|
||||
void onVCardClosed();
|
||||
void onVCardSave(const Shared::VCard& card, const QString& account);
|
||||
void onActivateVCard(const QString& account, const QString& jid, bool edition = false);
|
||||
void onInfoClosed();
|
||||
void onInfoSave(const Shared::Info& info, const QString& account);
|
||||
void onActivateInfo(const QString& account, const QString& jid);
|
||||
void onComboboxActivated(int index);
|
||||
void onRosterItemDoubleClicked(const QModelIndex& item);
|
||||
void onRosterContextMenu(const QPoint& point);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue