ne7ssh_sftp_packet.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005-2007 by NetSieben Technologies INC                 *
00003  *   Author: Andrew Useckas                                                *
00004  *   Email: andrew@netsieben.com                                           *
00005  *                                                                         *
00006  *   Windows Port and bugfixes: Keef Aragon <keef@netsieben.com>           *
00007  *                                                                         *
00008  *   This program may be distributed under the terms of the Q Public       *
00009  *   License as defined by Trolltech AS of Norway and appearing in the     *
00010  *   file LICENSE.QPL included in the packaging of this file.              *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *
00015  ***************************************************************************/
00016 
00017 #ifndef NE7SSHSFTPPACKET_H
00018 #define NE7SSHSFTPPACKET_H
00019 
00020 #include "ne7ssh_types.h"
00021 #include "ne7ssh_string.h"
00022 
00026 class Ne7sshSftpPacket : public ne7ssh_string
00027 {
00028   private:
00029     int channel;
00030 
00031   public:
00036     Ne7sshSftpPacket();
00041     Ne7sshSftpPacket(int channel);
00042 
00048     Ne7sshSftpPacket(Botan::SecureVector<Botan::byte>& var, uint32 position);
00049     
00053     ~Ne7sshSftpPacket();
00054 
00059     Botan::SecureVector<Botan::byte> &value ();
00060 
00066     Botan::SecureVector<Botan::byte> valueFragment (uint32 len = 0);
00067 
00072     void addInt64 (const uint64 var);
00073 
00078     uint64 getInt64 ();
00079 
00084     bool isChannelSet ();
00085 
00086 };
00087 
00088 #endif

Generated on Tue May 5 14:10:41 2009 for ne7ssh.kdevelop by  doxygen 1.5.9