houxiao
2017-08-09 353d2469941ee78798a68e60824aafd09c498e4a
VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h
@@ -5,32 +5,24 @@
#ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
#define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
#include <iostream>
#include <string>
#include <capnp/ez-rpc.h>
#include "RemoteMethod.proto.h"
#include "CameraWrapperServer.h"
const RtspFaceView::Client getRtspFaceViewClient();
class RtspFaceViewClient{
void startRemoteServer();
class RtspFaceViewClient : RtspFaceView::Client{
public:
    RtspFaceViewClient();
    ~RtspFaceViewClient();
    RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex);
    RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex);
    void setFaceLable(int cameraIndex,int trackId,std::string label);
    ~RtspFaceViewClient(){};
    ::kj::WaitScope& getWaitScope();
private:
    capnp::EzRpcClient rpcClient;
    RtspFaceDetect::Client client;
};
const RtspFaceViewClient& getRtspFaceViewClient();
class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
public:
    RtspFaceDetectImpl();
    ~RtspFaceDetectImpl();
    virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
};