00001 /*************************************************************************** 00002 * Copyright (C) 2005 by yunfan * 00003 * yunfan_zg@163.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #ifndef LIBCUSTOMPIC_EVAREQUESTFACE_H 00022 #define LIBCUSTOMPIC_EVAREQUESTFACE_H 00023 00024 #include "evapicpacket.h" 00025 00026 class EvaRequestFacePacket : public EvaPicOutPacket { 00027 public: 00028 EvaRequestFacePacket(); 00029 EvaRequestFacePacket(const EvaRequestFacePacket &rhs); 00030 virtual ~EvaRequestFacePacket(); 00031 00032 EvaRequestFacePacket &operator=(const EvaRequestFacePacket &rhs); 00033 00034 void setQunID(const int id) { qunID = id;} 00035 void setSessionID(const unsigned int id) { sessionID= id;} 00036 void setFileAgentToken(const unsigned char *token, const int len); 00037 00038 const int getQunID() const { return qunID; } 00039 const unsigned int getSessionID() const { return sessionID; } 00040 const int getTokenLength() const { return tokenLength; } 00041 const unsigned char *getFileAgentToken() const { return fileAgentToken; } 00042 protected: 00043 virtual int putBody(unsigned char *buf); 00044 private: 00045 int qunID; 00046 unsigned int sessionID; 00047 unsigned char *fileAgentToken; 00048 int tokenLength; 00049 }; 00050 00051 class EvaRequestFaceReplyPacket: public EvaPicInPacket { 00052 public: 00053 EvaRequestFaceReplyPacket(){}; 00054 EvaRequestFaceReplyPacket(unsigned char *buf, int len); 00055 EvaRequestFaceReplyPacket(const EvaRequestFaceReplyPacket &rhs); 00056 virtual ~EvaRequestFaceReplyPacket(){}; 00057 00058 EvaRequestFaceReplyPacket &operator=(const EvaRequestFaceReplyPacket &rhs); 00059 00060 const unsigned int getSessionID() const { return sessionID; } 00061 protected: 00062 virtual void parseBody(); 00063 private: 00064 unsigned int sessionID; 00065 }; 00066 00067 #endif 00068
1.4.4