Reformat ALL the source!
[quassel.git] / src / client / clientbacklogmanager.h
index f4a7b90..181017b 100644 (file)
 
 class BacklogRequester;
 
-class ClientBacklogManager : public BacklogManager {
-  SYNCABLE_OBJECT
-  Q_OBJECT
+class ClientBacklogManager : public BacklogManager
+{
+    SYNCABLE_OBJECT
+        Q_OBJECT
 
 public:
-  ClientBacklogManager(QObject *parent = 0);
+    ClientBacklogManager(QObject *parent = 0);
 
-  // helper for the backlogRequester, as it isn't a QObject and can't emit itself
-  inline void emitMessagesRequested(const QString &msg) const { emit messagesRequested(msg); }
+    // helper for the backlogRequester, as it isn't a QObject and can't emit itself
+    inline void emitMessagesRequested(const QString &msg) const { emit messagesRequested(msg); }
 
-  void reset();
+    void reset();
 
 public slots:
-  virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0);
-  virtual void receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
-  virtual void receiveBacklogAll(MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
+    virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0);
+    virtual void receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
+    virtual void receiveBacklogAll(MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
 
-  void requestInitialBacklog();
+    void requestInitialBacklog();
 
-  void checkForBacklog(BufferId bufferId);
-  void checkForBacklog(const BufferIdList &bufferIds);
+    void checkForBacklog(BufferId bufferId);
+    void checkForBacklog(const BufferIdList &bufferIds);
 
 signals:
-  void messagesReceived(BufferId bufferId, int count) const;
-  void messagesRequested(const QString &) const;
-  void messagesProcessed(const QString &) const;
+    void messagesReceived(BufferId bufferId, int count) const;
+    void messagesRequested(const QString &) const;
+    void messagesProcessed(const QString &) const;
 
-  void updateProgress(int, int);
+    void updateProgress(int, int);
 
 private:
-  bool isBuffering();
-  BufferIdList filterNewBufferIds(const BufferIdList &bufferIds);
+    bool isBuffering();
+    BufferIdList filterNewBufferIds(const BufferIdList &bufferIds);
 
-  void dispatchMessages(const MessageList &messages, bool sort = false);
+    void dispatchMessages(const MessageList &messages, bool sort = false);
 
-  BacklogRequester *_requester;
-  bool _initBacklogRequested;
-  QSet<BufferId> _buffersRequested;
+    BacklogRequester *_requester;
+    bool _initBacklogRequested;
+    QSet<BufferId> _buffersRequested;
 };
 
+
 // inlines
-inline void ClientBacklogManager::checkForBacklog(BufferId bufferId) {
-  checkForBacklog(BufferIdList() << bufferId);
+inline void ClientBacklogManager::checkForBacklog(BufferId bufferId)
+{
+    checkForBacklog(BufferIdList() << bufferId);
 }
 
+
 #endif // CLIENTBACKLOGMANAGER_H