Reformat ALL the source!
[quassel.git] / src / core / corebacklogmanager.h
index 7d7e1d8..85378f3 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 class CoreSession;
 
-class CoreBacklogManager : public BacklogManager {
-  Q_OBJECT
+class CoreBacklogManager : public BacklogManager
+{
+    SYNCABLE_OBJECT
+        Q_OBJECT
 
 public:
-  CoreBacklogManager(CoreSession *coreSession = 0);
+    CoreBacklogManager(CoreSession *coreSession = 0);
 
-  inline virtual const QMetaObject *syncMetaObject() const { return &BacklogManager::staticMetaObject; }
-
-  CoreSession *coreSession() { return _coreSession; }
+    CoreSession *coreSession() { return _coreSession; }
 
 public slots:
-  virtual QVariantList requestBacklog(BufferId bufferId, int lastMsgs = -1, int offset = -1);
+    virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0);
+    virtual QVariantList requestBacklogAll(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0);
 
 private:
-  CoreSession *_coreSession;
+    CoreSession *_coreSession;
 };
 
+
 #endif // COREBACKLOGMANAGER_H