libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_MEDIA_CREDENTIALFILEREADER_H 00013 #define ZYPP_MEDIA_CREDENTIALFILEREADER_H 00014 00015 #include "zypp/base/Function.h" 00016 #include "zypp/Url.h" 00017 #include "zypp/Pathname.h" 00018 00019 #include "zypp/media/MediaUserAuth.h" 00020 00022 namespace zypp 00023 { 00024 00025 namespace media 00026 { 00027 00028 00030 // 00031 // CLASS NAME : CredentialFileReader 00032 // 00033 class CredentialFileReader 00034 { 00035 public: 00044 typedef function<bool(AuthData_Ptr &)> ProcessCredentials; 00045 00046 CredentialFileReader(const Pathname & crfile, 00047 const ProcessCredentials & callback); 00048 ~CredentialFileReader(); 00049 private: 00050 ProcessCredentials _callback; 00051 }; 00053 00054 00056 } // media 00059 } // zypp 00061 00062 #endif /* ZYPP_MEDIA_CREDENTIALFILEREADER_H */