bineditor: simplify code

Remove 'synchronous' parameter in data requests as everything is
asynchroneous right now. Also remove unneeded m_requests.contains call.
This commit is contained in:
hjk
2011-02-28 15:01:19 +01:00
parent 8ed8554cd4
commit be81d25b73
5 changed files with 20 additions and 21 deletions

View File

@@ -63,16 +63,18 @@ public slots:
void createBinEditor(quint64 startAddr);
// Called by engine to trigger update of contents.
void updateContents();
// Called by enine to pass updated contents.
// Called by engine to pass updated contents.
void addLazyData(QObject *editorToken, quint64 addr, const QByteArray &data);
private:
Q_SLOT void fetchLazyData(Core::IEditor *, quint64 block, bool sync);
Q_SLOT void provideNewRange(Core::IEditor *editor, quint64 address);
Q_SLOT void handleStartOfFileRequested(Core::IEditor *editor);
Q_SLOT void handleEndOfFileRequested(Core::IEditor *editor);
Q_SLOT void handleDataChanged(Core::IEditor *editor, quint64 address, const QByteArray &data);
private slots:
void fetchLazyData(Core::IEditor *, quint64 block);
void provideNewRange(Core::IEditor *editor, quint64 address);
void handleStartOfFileRequested(Core::IEditor *editor);
void handleEndOfFileRequested(Core::IEditor *editor);
void handleDataChanged(Core::IEditor *editor, quint64 address,
const QByteArray &data);
private:
QList<QPointer<Core::IEditor> > m_editors;
QPointer<DebuggerEngine> m_engine;
};