OLD | NEW |
1 #include "bindings.ipp" | 1 #include "bindings.ipp" |
2 #include "filter/Filter.h" | 2 #include "filter/Filter.h" |
3 #include "filter/InvalidFilter.h" | 3 #include "filter/InvalidFilter.h" |
4 #include "filter/CommentFilter.h" | 4 #include "filter/CommentFilter.h" |
5 #include "filter/ActiveFilter.h" | 5 #include "filter/ActiveFilter.h" |
6 #include "filter/RegExpFilter.h" | 6 #include "filter/RegExpFilter.h" |
7 #include "filter/BlockingFilter.h" | 7 #include "filter/BlockingFilter.h" |
8 #include "filter/WhitelistFilter.h" | 8 #include "filter/WhitelistFilter.h" |
9 #include "filter/ElemHideBase.h" | 9 #include "filter/ElemHideBase.h" |
10 #include "filter/ElemHideFilter.h" | 10 #include "filter/ElemHideFilter.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class_<ElemHideException,ElemHideBase>("ElemHideException") | 66 class_<ElemHideException,ElemHideBase>("ElemHideException") |
67 .class_property("type", "'elemhideexception'"); | 67 .class_property("type", "'elemhideexception'"); |
68 | 68 |
69 class_<ElemHideEmulationFilter,ElemHideBase>("ElemHideEmulationFilter") | 69 class_<ElemHideEmulationFilter,ElemHideBase>("ElemHideEmulationFilter") |
70 .class_property("type", "'elemhideemulation'"); | 70 .class_property("type", "'elemhideemulation'"); |
71 | 71 |
72 class_<Subscription>("Subscription") | 72 class_<Subscription>("Subscription") |
73 .property("url", &Subscription::GetID) | 73 .property("url", &Subscription::GetID) |
74 .property("title", &Subscription::GetTitle, &Subscription::SetTitle) | 74 .property("title", &Subscription::GetTitle, &Subscription::SetTitle) |
75 .property("disabled", &Subscription::GetDisabled, &Subscription::SetDisabl
ed) | 75 .property("disabled", &Subscription::GetDisabled, &Subscription::SetDisabl
ed) |
| 76 .property("filterCount", &Subscription::GetFilterCount) |
| 77 .function("filterAt", &Subscription::FilterAt) |
| 78 .function("indexOfFilter", &Subscription::IndexOfFilter) |
76 .function("serialize", &Subscription::Serialize) | 79 .function("serialize", &Subscription::Serialize) |
77 .function("serializeFilters", &Subscription::SerializeFilters) | 80 .function("serializeFilters", &Subscription::SerializeFilters) |
78 .class_function("fromURL", &Subscription::FromID) | 81 .class_function("fromURL", &Subscription::FromID) |
79 .subclass_differentiator(&Subscription::mType, { | 82 .subclass_differentiator(&Subscription::mType, { |
80 {Subscription::Type::USERDEFINED, "SpecialSubscription"}, | 83 {Subscription::Type::USERDEFINED, "SpecialSubscription"}, |
81 {Subscription::Type::DOWNLOADABLE, "DownloadableSubscription"}, | 84 {Subscription::Type::DOWNLOADABLE, "DownloadableSubscription"}, |
82 }); | 85 }); |
83 | 86 |
84 class_<UserDefinedSubscription,Subscription>("SpecialSubscription") | 87 class_<UserDefinedSubscription,Subscription>("SpecialSubscription") |
85 .function("isDefaultFor", &UserDefinedSubscription::IsDefaultFor) | 88 .function("isDefaultFor", &UserDefinedSubscription::IsDefaultFor) |
86 .function("makeDefaultFor", &UserDefinedSubscription::MakeDefaultFor) | 89 .function("makeDefaultFor", &UserDefinedSubscription::MakeDefaultFor) |
| 90 .function("insertFilterAt", &UserDefinedSubscription::InsertFilterAt) |
| 91 .function("removeFilterAt", &UserDefinedSubscription::RemoveFilterAt) |
87 .function("serialize", &UserDefinedSubscription::Serialize); | 92 .function("serialize", &UserDefinedSubscription::Serialize); |
88 | 93 |
89 class_<DownloadableSubscription,Subscription>("DownloadableSubscription") | 94 class_<DownloadableSubscription,Subscription>("DownloadableSubscription") |
90 .property("fixedTitle", &DownloadableSubscription::GetFixedTitle, &Downloa
dableSubscription::SetFixedTitle) | 95 .property("fixedTitle", &DownloadableSubscription::GetFixedTitle, &Downloa
dableSubscription::SetFixedTitle) |
91 .property("homepage", &DownloadableSubscription::GetHomepage, &Downloadabl
eSubscription::SetHomepage) | 96 .property("homepage", &DownloadableSubscription::GetHomepage, &Downloadabl
eSubscription::SetHomepage) |
92 .property("lastCheck", &DownloadableSubscription::GetLastCheck, &Downloada
bleSubscription::SetLastCheck) | 97 .property("lastCheck", &DownloadableSubscription::GetLastCheck, &Downloada
bleSubscription::SetLastCheck) |
93 .property("expires", &DownloadableSubscription::GetHardExpiration, &Downlo
adableSubscription::SetHardExpiration) | 98 .property("expires", &DownloadableSubscription::GetHardExpiration, &Downlo
adableSubscription::SetHardExpiration) |
94 .property("softExpiration", &DownloadableSubscription::GetSoftExpiration,
&DownloadableSubscription::SetSoftExpiration) | 99 .property("softExpiration", &DownloadableSubscription::GetSoftExpiration,
&DownloadableSubscription::SetSoftExpiration) |
95 .property("lastDownload", &DownloadableSubscription::GetLastDownload, &Dow
nloadableSubscription::SetLastDownload) | 100 .property("lastDownload", &DownloadableSubscription::GetLastDownload, &Dow
nloadableSubscription::SetLastDownload) |
96 .property("downloadStatus", &DownloadableSubscription::GetDownloadStatus,
&DownloadableSubscription::SetDownloadStatus) | 101 .property("downloadStatus", &DownloadableSubscription::GetDownloadStatus,
&DownloadableSubscription::SetDownloadStatus) |
97 .property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &Downl
oadableSubscription::SetLastSuccess) | 102 .property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &Downl
oadableSubscription::SetLastSuccess) |
98 .property("errors", &DownloadableSubscription::GetErrorCount, &Downloadabl
eSubscription::SetErrorCount) | 103 .property("errors", &DownloadableSubscription::GetErrorCount, &Downloadabl
eSubscription::SetErrorCount) |
99 .property("version", &DownloadableSubscription::GetDataRevision, &Download
ableSubscription::SetDataRevision) | 104 .property("version", &DownloadableSubscription::GetDataRevision, &Download
ableSubscription::SetDataRevision) |
100 .property("requiredVersion", &DownloadableSubscription::GetRequiredVersion
, &DownloadableSubscription::SetRequiredVersion) | 105 .property("requiredVersion", &DownloadableSubscription::GetRequiredVersion
, &DownloadableSubscription::SetRequiredVersion) |
101 .property("downloadCount", &DownloadableSubscription::GetDownloadCount, &D
ownloadableSubscription::SetDownloadCount) | 106 .property("downloadCount", &DownloadableSubscription::GetDownloadCount, &D
ownloadableSubscription::SetDownloadCount) |
102 .function("serialize", &DownloadableSubscription::Serialize); | 107 .function("serialize", &DownloadableSubscription::Serialize); |
103 } | 108 } |
OLD | NEW |