houxiao
2017-08-11 eb69d9c33b307bfc2d6c7f46a210f98c5fa306c5
VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h
@@ -5,33 +5,32 @@
#ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
#define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
#include <iostream>
#include <string>
#include <capnp/ez-rpc.h>
#include "RemoteMethod.proto.h"
#include "RemoteMethod.capnp.h"
#include "CameraWrapperServer.h"
const RtspFaceView::Client getRtspFaceViewClient();
void startRemoteServer();
class RtspFaceViewClient{
class RtspFaceViewClient : RtspFaceView::Client
{
public:
    RtspFaceViewClient();
    ~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;
   capnp::EzRpcClient rpcClient;
};
class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
public:
    RtspFaceDetectImpl();
    ~RtspFaceDetectImpl();
RtspFaceViewClient* getRtspFaceViewClient();
    virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
class RtspFaceDetectImpl final : public RtspFaceDetect::Server
{
public:
   virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override;
};
#endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H