libzypp: zypp/media/CredentialFileReader.h Source File

libzypp 17.25.10

CredentialFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_MEDIA_CREDENTIALFILEREADER_H
13 #define ZYPP_MEDIA_CREDENTIALFILEREADER_H
14
15 #include <zypp/base/Function.h>
16 #include <zypp/Url.h>
17 #include <zypp/Pathname.h>
18
19 #include <zypp/media/MediaUserAuth.h>
20
22 namespace zypp
23 {
25 namespace media
26 {
30 class CredentialFileReader
31 {
32 public:
36 typedef function<bool(AuthData_Ptr &)> ProcessCredentials;
37
38 CredentialFileReader( const Pathname & crfile_r, const ProcessCredentials & callback_r );
39 ~CredentialFileReader();
40 private:
41 ProcessCredentials _callback;
42 };
44
45 } // namespace media
47 } // namespace zypp
49
50 #endif /* ZYPP_MEDIA_CREDENTIALFILEREADER_H */
Function.h
MediaUserAuth.h
Convenience interface for handling authentication data of media user.
Pathname.h
Url.h
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::media::CredentialFileReader
Parse credentials files and catalogs.
Definition: CredentialFileReader.h:31
zypp::media::CredentialFileReader::~CredentialFileReader
~CredentialFileReader()
Definition: CredentialFileReader.cc:137
zypp::media::CredentialFileReader::ProcessCredentials
function< bool(AuthData_Ptr &)> ProcessCredentials
Callback invoked for each entry found in the file.
Definition: CredentialFileReader.h:36
zypp::media::CredentialFileReader::_callback
ProcessCredentials _callback
Definition: CredentialFileReader.h:41
zypp::media::CredentialFileReader::CredentialFileReader
CredentialFileReader(const Pathname &crfile_r, const ProcessCredentials &callback_r)
Definition: CredentialFileReader.cc:134
zypp::media::AuthData_Ptr
shared_ptr< AuthData > AuthData_Ptr
Definition: MediaUserAuth.h:69
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2