Cache refactoring
This commit is contained in:
parent
ca66940ec3
commit
2f00fc51bf
26 changed files with 1361 additions and 920 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include "emoji/PickButton.h"
|
||||
|
||||
class RoomState;
|
||||
class Cache;
|
||||
|
||||
namespace dialogs {
|
||||
class PreviewUploadOverlay;
|
||||
|
|
@ -131,12 +131,12 @@ public:
|
|||
|
||||
QColor borderColor() const { return borderColor_; }
|
||||
void setBorderColor(QColor &color) { borderColor_ = color; }
|
||||
void setCache(QSharedPointer<Cache> cache) { cache_ = cache; }
|
||||
|
||||
public slots:
|
||||
void openFileSelection();
|
||||
void hideUploadSpinner();
|
||||
void focusLineEdit() { input_->setFocus(); }
|
||||
void setRoomState(QSharedPointer<RoomState> state) { currState_ = state; }
|
||||
|
||||
private slots:
|
||||
void addSelectedEmoji(const QString &emoji);
|
||||
|
|
@ -172,8 +172,7 @@ private:
|
|||
FlatButton *sendMessageBtn_;
|
||||
emoji::PickButton *emojiBtn_;
|
||||
|
||||
//! State of the current room.
|
||||
QSharedPointer<RoomState> currState_;
|
||||
QSharedPointer<Cache> cache_;
|
||||
|
||||
QColor borderColor_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue