diff options
author | Marco Bubke <marco.bubke@qt.io> | 2016-07-04 14:55:58 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@theqtcompany.com> | 2016-07-12 09:08:23 +0000 |
commit | c5e79f6269e0187909a3eeded5290d09d2c74457 (patch) | |
tree | bf3286918d5a9b3ef0067f88832e03659c3359e7 /src/libs/clangbackendipc/clangcodemodelconnectionclient.h | |
parent | e6fa92e58c88f51aa5011d09ffd1a77db5a83515 (diff) | |
download | qt-creator-c5e79f6269e0187909a3eeded5290d09d2c74457.tar.gz |
Clang: Decouple ConnectionClient and ClangCodeModel*
We want to reuse the connection client in other plugins. This is the first
step, the next step is refactoring the IPC mechanismn and move it up to
the IpcServer- and IpcClientInterface.
Change-Id: I6eb6db1e9bc18232c8df350a6303afd2edc68da8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/libs/clangbackendipc/clangcodemodelconnectionclient.h')
-rw-r--r-- | src/libs/clangbackendipc/clangcodemodelconnectionclient.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/libs/clangbackendipc/clangcodemodelconnectionclient.h b/src/libs/clangbackendipc/clangcodemodelconnectionclient.h new file mode 100644 index 0000000000..00be390b76 --- /dev/null +++ b/src/libs/clangbackendipc/clangcodemodelconnectionclient.h @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +****************************************************************************/ + +#pragma once + +#include "connectionclient.h" + +namespace ClangBackEnd { + +class CMBIPC_EXPORT ClangCodeModelConnectionClient : public ConnectionClient +{ +public: + ClangCodeModelConnectionClient(ClangCodeModelClientInterface *client); + + ClangCodeModelServerProxy &serverProxy(); + +protected: + void sendEndCommand() override; + void resetCounter() override; + +private: + ClangCodeModelServerProxy serverProxy_; +}; + +} // namespace ClangBackEnd |