- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / SilentCallbacks.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/SilentCallbacks.h
10  *
11 */
12 #ifndef ZYPP_SILENTCALLBACKS_H
13 #define ZYPP_SILENTCALLBACKS_H
14
15 #include "zypp/ZYppCallbacks.h"
16
17 ///////////////////////////////////////////////////////////////////
18 namespace zypp
19 { /////////////////////////////////////////////////////////////////
20   namespace media 
21   { 
22     // media change request callback
23     struct SilentMediaChange : public callback::ReceiveReport<MediaChangeReport>
24     {
25       virtual Action requestMedia(
26         const Source_Ref /*source*/
27         , unsigned 
28         , Error 
29         , const std::string&
30       ) { return MediaChangeReport::ABORT; }
31     };
32
33     /////////////////////////////////////////////////////////////////
34   } // namespace media
35   ///////////////////////////////////////////////////////////////////
36
37   /////////////////////////////////////////////////////////////////
38 } // namespace zypp
39 ///////////////////////////////////////////////////////////////////
40
41 #endif // ZYPP_SILENTCALLBACKS_H