forked from readium/readium-sdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding content filter error handler based on previous additions to th…
…e develop branch
- Loading branch information
Aferdita Muriqi
committed
Feb 16, 2017
1 parent
7fe6413
commit 91546e2
Showing
8 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Platform/Android/lib/src/main/java/org/readium/sdk/android/ContentFilterErrorHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2015 Readium Foundation and/or its licensees. All rights reserved. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// | ||
// Licensed under Gnu Affero General Public License Version 3 (provided, notwithstanding this notice, | ||
// Readium Foundation reserves the right to license this material under a different separate license, | ||
// and if you have done so, the terms of that separate license control and the following references | ||
// to GPL do not apply). | ||
// | ||
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// Affero General Public License as published by the Free Software Foundation, either version 3 of | ||
// the License, or (at your option) any later version. You should have received a copy of the GNU | ||
// Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
package org.readium.sdk.android; | ||
|
||
public interface ContentFilterErrorHandler { | ||
void handleContentFilterError(String filterId, long errorCode, String message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// filter.cpp | ||
// ePub3 | ||
// | ||
// Created by Nelson Leme on 5/28/15. | ||
// Copyright (c) 2015 The Readium Foundation and contributors. All rights reserved. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// | ||
// Licensed under Gnu Affero General Public License Version 3 (provided, notwithstanding this notice, | ||
// Readium Foundation reserves the right to license this material under a different separate license, | ||
// and if you have done so, the terms of that separate license control and the following references | ||
// to GPL do not apply). | ||
// | ||
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// Affero General Public License as published by the Free Software Foundation, either version 3 of | ||
// the License, or (at your option) any later version. You should have received a copy of the GNU | ||
// Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
#include <stdio.h> | ||
#include "filter.h" | ||
|
||
EPUB3_BEGIN_NAMESPACE | ||
|
||
ContentFilterErrorHandlerFn ContentFilter::s_contentFilterErrorHandler = ContentFilter::DefaultContentFilterErrorHandler; | ||
|
||
EPUB3_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91546e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature looks very interesting. Could you create a pull request to the readium sdk project ?
91546e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes will do that
91546e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be clear, this feature was originally proposed for inclusion in ReadiumSDK by Bluefire's Nelson Leme, in this Pull Request: readium#239
I am now tasked to adapt the PR code as necessary, in order to merge cleanly into
master
/ release 0.27 (viadevelop
, of course).