1 /*
2  * CppServerOperations.java
3  *
4  * Copyright (C) 2021 by RStudio, PBC
5  *
6  * Unless you have received this program directly from RStudio pursuant
7  * to the terms of a commercial license agreement with RStudio, then
8  * this program is licensed to you under the terms of version 3 of the
9  * GNU Affero General Public License. This program is distributed WITHOUT
10  * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
11  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
12  * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
13  *
14  */
15 package org.rstudio.studio.client.workbench.views.source.model;
16 
17 import org.rstudio.studio.client.server.Void;
18 import org.rstudio.studio.client.server.ServerRequestCallback;
19 import org.rstudio.studio.client.workbench.views.buildtools.model.BuildServerOperations;
20 
21 import com.google.gwt.core.client.JsArray;
22 
23 public interface CppServerOperations extends BuildServerOperations
24 {
goToCppDefinition( String docPath, int line, int column, ServerRequestCallback<CppSourceLocation> requestCallback)25    void goToCppDefinition(
26                 String docPath,
27                 int line,
28                 int column,
29                 ServerRequestCallback<CppSourceLocation> requestCallback);
30 
findCppUsages( String docPath, int line, int column, ServerRequestCallback<Void> requestCallback)31    void findCppUsages(
32                 String docPath,
33                 int line,
34                 int column,
35                 ServerRequestCallback<Void> requestCallback);
36 
getCppCompletions( String line, String docPath, String docId, int row, int column, String userText, ServerRequestCallback<CppCompletionResult> requestCallback)37    void getCppCompletions(
38                 String line,
39                 String docPath,
40                 String docId,
41                 int row,
42                 int column,
43                 String userText,
44                 ServerRequestCallback<CppCompletionResult> requestCallback);
45 
getCppDiagnostics( String docPath, ServerRequestCallback<JsArray<CppDiagnostic>> requestCallback)46    void getCppDiagnostics(
47                 String docPath,
48                 ServerRequestCallback<JsArray<CppDiagnostic>> requestCallback);
49 }
50