Offer interface to get/set KeyRing::defaultAccept bits.
[platform/upstream/libzypp-bindings.git] / swig / KeyRing.i
1
2 %ignore zypp::KeyRingReport;
3 %ignore zypp::KeyRingSignals;
4
5 %rename(dontuse_setDefaultAccept) zypp::KeyRing::setDefaultAccept;
6 %rename(setDefaultAccept) zypp::KeyRing::setDefaultAcceptBits;
7
8 %rename(dontuse_defaultAccept) zypp::KeyRing::defaultAccept;
9 %rename(defaultAccept) zypp::KeyRing::defaultAcceptBits;
10
11 %include <zypp/KeyRing.h>
12 %extend zypp::KeyRing
13 {
14   static void setDefaultAcceptBits( unsigned i ) {
15     zypp::KeyRing::setDefaultAccept( zypp::KeyRing::DefaultAccept(i) );
16   }
17   static unsigned defaultAcceptBits() {
18     return zypp::KeyRing::defaultAccept();
19   }
20 }
21 namespace zypp
22 {
23   typedef intrusive_ptr<KeyRing> KeyRing_Ptr;
24   %template(KeyRing_Ptr) intrusive_ptr<KeyRing>;
25 }
26
27 %template(List_PublicKey) std::list<zypp::PublicKey>;