00001 // @(#)root/auth:$Id: TAFS.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: G. Ganis, Nov 2006 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TAFS 00013 #define ROOT_TAFS 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TAFS // 00019 // // 00020 // Utility class to acquire and handle an AFS tokens. // 00021 // Interface to libTAFS.so. // 00022 // // 00023 ////////////////////////////////////////////////////////////////////////// 00024 00025 #ifndef ROOT_TObject 00026 #include "TObject.h" 00027 #endif 00028 00029 class TPluginHandler; 00030 00031 class TAFS : public TObject { 00032 private: 00033 void *fToken; // AFS token 00034 00035 static Bool_t fgUsePwdDialog; 00036 static TPluginHandler *fgPasswdDialog; 00037 00038 public: 00039 TAFS(const char *fn = 0, const char *usr = 0, int life = -1); 00040 virtual ~TAFS(); 00041 00042 Int_t Verify(); 00043 00044 static void SetUsePwdDialog(Bool_t on = kTRUE); 00045 00046 ClassDef(TAFS,0) //AFS wrapper class 00047 }; 00048 00049 #endif 00050