00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Kevin McBride * 00003 * kevin@planetsaphire.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU Library General Public License as * 00007 * published by the Free Software Foundation; either version 2 of the * 00008 * License, or (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 Library General Public * 00016 * License 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 #define LIBTEKLTI_EXPORT (0) 00022 00023 #ifndef _cplusplus 00024 #define _cplusplus 00025 #endif /* _cplusplus */ 00026 #include "teklti.h" 00027 00028 00029 #ifdef NULL 00030 #undef NULL 00031 #define NULL (0) 00032 #endif /* NULL */ 00033 00034 00035 MKTEKUUID(UTekStatFile, "E369BDA-3789-11DA-8436-000BDBC434D9"); 00036 MKTEKDEBUGSTRING(DBTekStatFile, "DBTekStatFile"); 00037 00038 00039 #if NULL != 0 00040 00050 class TekStatFile : public TekStd 00051 { 00052 public: 00053 TekStatFile(); 00054 ~TekStatFile(); 00055 00056 virtual TEKERR put_Filename(const uchar_t * Filename) = 0; 00057 virtual TEKERR put_FILE(FILE * FileDescriptor) = 0; 00058 virtual TEKERR put_UserInfoToAccess(uuid_t * UUIDOfUserInfo) = 0; 00059 00060 virtual TEKERR MakeTekFile(TekFileType TekType, TekFile ** RetVal) = 0; 00061 00062 virtual TEKERR get_Dev(dev_t * Dev) = 0; 00063 virtual TEKERR get_DevNo(dev_t * DevNo) = 0; 00064 virtual TEKERR get_FileSerialNo(ino_t * SerialNo) = 0; 00065 virtual TEKERR get_Mode(mode_t * FileMode) = 0; 00066 virtual TEKERR get_ModeString(uchar_t ** FileModeString) = 0; 00067 virtual TEKERR put_Mode(mode_t NewFileMode) = 0; 00068 virtual TEKERR put_ModeString(const uchar_t * NewFileModeString) = 0; 00069 virtual TEKERR get_LinkCount(nlink_t * LinkCount) = 0; 00070 virtual TEKERR get_UID(uid_t * UID) = 0; 00071 virtual TEKERR put_UID(uid_t UID) = 0; 00072 virtual TEKERR get_GID(gid_t * GID) = 0; 00073 virtual TEKERR put_GID(gid_t GID) = 0; 00074 virtual TEKERR get_UIDString(uchar_t ** UIDString) = 0; 00075 virtual TEKERR put_UIDString(const uchar_t * UIDString) = 0; 00076 virtual TEKERR get_GIDString(uchar_t ** GIDString) = 0; 00077 virtual TEKERR put_GIDString(const uchar_t * GIDString) = 0; 00078 virtual TEKERR get_Size(unsigned long * FileSize) = 0; 00079 virtual TEKERR get_Size64(uint64_t * FileSize) = 0; 00080 virtual TEKERR get_BlockSize(blksize_t * FileBlockSize) = 0; 00081 virtual TEKERR get_BlockCount(blkcnt64_t * FileBlockCount) = 0; 00082 virtual TEKERR get_TimeOfLastAccessRaw(unsigned long ** RetVal) = 0; 00083 virtual TEKERR get_TimeOfLastModificationRaw(unsigned long ** RetVal) = 0; 00084 virtual TEKERR get_TimeOfLastStatChangeRaw(unsigned long ** RetVal) = 0; 00085 virtual TEKERR get_TimeOfLastAccess(uchar_t ** RetVal) = 0; 00086 virtual TEKERR get_TimeOfLastModification(uchar_t ** RetVal) = 0; 00087 virtual TEKERR get_TimeOfLastStatChange(uchar_t ** RetVal) = 0; 00088 00092 TEKSTD_PUREVIRTUAL_FUNC_V1 00093 }; 00094 #endif 00095 00096 00100 TekStatFile::TekStatFile() 00101 { 00102 ; 00103 } 00104 00105 00111 TekStatFile::~TekStatFile() 00112 { 00113 ; 00114 } 00115 00116 00117 #if NULL != 0 00118 00123 TEKERR TekStatFile::put_Filename(const uchar_t * Filename) 00124 { 00125 return TEKERR_NOTIMPL; 00126 } 00127 00133 TEKERR TekStatFile::put_FILE(FILE * FileDescriptor) 00134 { 00135 return TEKERR_NOTIMPL; 00136 } 00137 00149 TEKERR TekStatFile::put_UserInfoToAccess(uuid_t * UUIDOfUserInfo) 00150 { 00151 return TEKERR_NOTIMPL; 00152 } 00153 00160 TEKERR MakeTekFile(TekFileType TekType, TekFile ** RetVal) 00161 { 00162 return TEKERR_NOTIMPL; 00163 } 00164 00170 TEKERR TekStatFile::get_Dev(dev_t * Dev) 00171 { 00172 return TEKERR_NOTIMPL; 00173 } 00174 00180 TEKERR TekStatFile::get_DevNo(dev_t * DevNo) 00181 { 00182 return TEKERR_NOTIMPL; 00183 } 00184 00190 TEKERR TekStatFile::get_FileSerialNo(ino_t * SerialNo) 00191 { 00192 return TEKERR_NOTIMPL; 00193 } 00194 00200 TEKERR TekStatFile::get_Mode(mode_t * FileMode) 00201 { 00202 return TEKERR_NOTIMPL; 00203 } 00204 00210 TEKERR TekStatFile::get_ModeString(uchar_t ** FileModeString) 00211 { 00212 return TEKERR_NOTIMPL; 00213 } 00214 00220 TEKERR TekStatFile::put_Mode(mode_t NewFileMode) 00221 { 00222 return TEKERR_NOTIMPL; 00223 } 00224 00231 TEKERR TekStatFile::put_ModeString(const uchar_t * NewFileModeString) 00232 { 00233 return TEKERR_NOTIMPL; 00234 } 00235 00241 TEKERR TekStatFile::get_LinkCount(nlink_t * LinkCount) 00242 { 00243 return TEKERR_NOTIMPL; 00244 } 00245 00251 TEKERR TekStatFile::get_UID(uid_t * UID) 00252 { 00253 return TEKERR_NOTIMPL; 00254 } 00255 00261 TEKERR TekStatFile::put_UID(uid_t UID) 00262 { 00263 return TEKERR_NOTIMPL; 00264 } 00265 00271 TEKERR TekStatFile::get_GID(gid_t * GID) 00272 { 00273 return TEKERR_NOTIMPL; 00274 } 00275 00281 TEKERR TekStatFile::put_GID(gid_t GID) 00282 { 00283 return TEKERR_NOTIMPL; 00284 } 00285 00291 TEKERR TekStatFile::get_UIDString(uchar_t ** UIDString) 00292 { 00293 return TEKERR_NOTIMPL; 00294 } 00295 00301 TEKERR TekStatFile::put_UIDString(const uchar_t * UIDString) 00302 { 00303 return TEKERR_NOTIMPL; 00304 } 00305 00311 TEKERR TekStatFile::get_GIDString(uchar_t ** GIDString) 00312 { 00313 return TEKERR_NOTIMPL; 00314 } 00315 00321 TEKERR TekStatFile::put_GIDString(const uchar_t * GIDString) 00322 { 00323 return TEKERR_NOTIMPL; 00324 } 00325 00331 TEKERR TekStatFile::get_Size(unsigned long * FileSize) 00332 { 00333 return TEKERR_NOTIMPL; 00334 } 00335 00341 TEKERR TekStatFile::get_Size64(uint64_t * FileSize) 00342 { 00343 return TEKERR_NOTIMPL; 00344 } 00345 00351 TEKERR TekStatFile::get_BlockSize(blksize_t * FileBlockSize) 00352 { 00353 return TEKERR_NOTIMPL; 00354 } 00355 00361 TEKERR TekStatFile::get_BlockCount(blkcnt64_t * FileBlockCount) 00362 { 00363 return TEKERR_NOTIMPL; 00364 } 00365 00371 TEKERR TekStatFile::get_TimeOfLastAccessRaw(unsigned long ** RetVal) 00372 { 00373 return TEKERR_NOTIMPL; 00374 } 00375 00381 TEKERR TekStatFile::get_TimeOfLastModificationRaw(unsigned long ** RetVal) 00382 { 00383 return TEKERR_NOTIMPL; 00384 } 00385 00391 TEKERR TekStatFile::get_TimeOfLastStatChangeRaw(unsigned long ** RetVal) 00392 { 00393 return TEKERR_NOTIMPL; 00394 } 00395 00401 TEKERR TekStatFile::get_TimeOfLastAccess(uchar_t ** RetVal) 00402 { 00403 return TEKERR_NOTIMPL; 00404 } 00405 00411 TEKERR TekStatFile::get_TimeOfLastModification(uchar_t ** RetVal) 00412 { 00413 return TEKERR_NOTIMPL; 00414 } 00415 00421 TEKERR TekStatFile::get_TimeOfLastStatChange(uchar_t ** RetVal) 00422 { 00423 return TEKERR_NOTIMPL; 00424 } 00425 #endif /* NULL != 0 */ 00426