3 | • أفتحأعدادات الوايرلس • المس مع الاستمرار على شبكة متصلة network حتى تظهر قائمة السياق • أخترتعديل الشبكة • تحققتظهر الخيارات المتقدمة • أبحث عن إعدادات الوكيل أدناه وحدد لها يدوي • Set الوكيل to localhost والمنفذ ألى%d
4 |
2 | يبدو أن الجهاز الخاص بك يقوم بتشغيل الروبوت 2.3 أو أقدم.
3 | لا يعتمد هذا الإصدار من الروبوت تكوين وكيل، ولكن العديد من الشركات المصنعة بإضافة إعدادات لذلك على الأجهزة الخاصة بهم.
4 | إلقاء نظرة على التعليمات الخاصة بالجهاز.
5 |
6 |
7 |
8 | إذا كان الجهاز الخاص بك يدعم تكوين وكيل، يرجى استخدام localhost كاسم المضيف و %d كرقم المنفذ.
9 |
Това е как да конфигурирате прокси Wi-Fi за Adblock Плюс:
2 |
3 | • Отвори безжични настройки • докосни и задръжте свързана мрежата докато контекстното меню се появи • изберете Промяна на мрежата • ИзбериПокажи разширени опции • Потърси прокси настройките по-долу и да го настроите на Ръчни • Настроите прокси сървърът на localhost и порт на %d
4 |
2 | Изглежда, че вашето устройството работи с Android 2.3 или по-стар.
3 | Тази версия на Android не поддържа конфигурирането на прокси, но няколко производители са добавили настройки за това с техните устройства.
4 | Погледнете в нашите специфични инструкции за устройства.
5 |
6 |
7 |
8 | Ако вашето устройство поддържа конфигуриране на прокси, използвайте localhost като името на хоста и %d като номера на порта.
9 |
Aquest programa és subjecte a les condicions de la llicència pública GNU General v 3.0. Podeu obtenir una còpia de la GPL a http://www.gnu.org/licenses/gpl.html.
Això és com heu de configurar el proxy de Wi-Fi de l'Adblock Plus:
2 |
3 | • Obriu els paràmetres de connexió sense fil • Toqueu i mantingueu la xarxa connectada until the un menú contextual apareix • Seleccioneu Modifica la xarxa • Aneu aMostra opcions avançades • Mireu a Paràmetres de servidor a sota i poseu-ho en Manual • PoseuProxy to localhost i Port to %d
4 |
2 | Sembla que el vostre dispositiu té Android 2.3 o més antic.
3 | Aquesta versió d'Android no permet de configurar un servidor intermediari, però diversos fabricants han afegit paràmetres per a poder-ho fer als seus dispositius.
4 | Feu una ullada a les nostres instruccions específiques per al vostre dispositiu.
5 |
6 |
7 |
8 | Si el vostre dispositiu és compatible amb configurar un servidor intermediari, utilitzeu localhost com a nom d'amfitrió i %d com el número de port.
9 |
3 | • Otevřte nastavení bezdrátových sítí • Stiskněte a podržte prst na připojené síti dokud se nezobrazí kontextové menu • Vyberte Upravit síť • Zaškrtněte Zobrazit pokročilé možnosti • Najděte Nastavení serveru proxy níže a nastavte ho na Ručně • Nastavte Proxy na localhost a Port na %d
4 |
2 | Zdá se, že Váš přístroj běží na Androidu 2.3 nebo starším.
3 | Tato verze Androidu nepodporuje nastavení proxy serveru, ale mnozí výrobci toto nastavení do svých přístrojů přidali.
4 | Zkoukněte naše pokyny pro jednotlivé přístroje.
5 |
6 |
7 |
8 | Pokud Vaš přístroj podporuje nastavení proxy serveru, použijte prosím localhost jako název hostitele a %d jako číslo portu.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
2 | Scheinbar läuft auf Ihrem Gerät Android 2.3 oder älter.
3 | Diese Android-Version unterstützt keine Proxy-Konfiguration,
4 | aber einige Hersteller haben sie in ihren Geräten ergänzt.
5 | Unsere gerätespezifischen Anleitungen ansehen.
6 |
7 |
8 |
9 | Falls Ihr Gerät keine Proxy-Konfiguration unterstützt,
10 | verwenden Sie bitte localhost als Proxy-Hostnamen und %d als Proxy-Port.
11 |
Αυτό το πρόγραμμα υπόκειται στους όρους της Γενικής Άδειας Δημόσιας Χρήσης GNU, έκδοση 3.0 (GNU General Public License v3.0.). Μπορείτε να βρείτε ένα αντίγραφο στο http://www.gnu.org/licenses/gpl.html.
5 |
6 |
Μνεία
7 |
Το Adblock Plus περιέχει κώδικα από τ' ακόλουθα έργα:
Να πως ρυθμίζετε τον διαμεσολαβητή Wi-Fi για το Adblock Plus:
2 |
3 | • Ανοίξτε τις ρυθμίσεις Wi-Fi • Κρατήστε πατημένο το συνδεδεμένο δίκτυο μέχρι να εμφανιστεί το μενού επιλογών • Επιλέξτε Τοποποίηση διαμόρφωσης δικτύου • Επιλέξτε Εμφάνιση σύνθετων επιλογών • Αναζητήστε το Ρυθμίσεις Proxy και ορίστε το σε Χειροκίνητα • Ορίστε τοΌνομα σε localhost και την Θύρα σε %d
4 |
2 | Φαίνεται πως η συσκευή σας λειτουργεί με Android 2.3 ή παλαιότερη έκδοση.
3 | Αυτή η έκδοση του Android δεν υποστηρίζει την ρύθμιση ενός διαμεσολαβητή, αλλά αρκετοί κατασκευαστές έχουν προσθέσει σχετικές ρυθμίσεις στις συσκευές τους.
4 | Ρίξτε μια ματιά στις οδηγίες ανά συσκευή.
5 |
6 |
7 |
8 | Εάν η συσκευή σας δεν υποστηρίζει την παραμετροποίηση ενός διαμεσολαβητή, παρακαλώ χρησιμοποιείστε localhost ως όνομα εξυπηρετητή και %d ως αριθμό θύρας.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
Este programa está sujeto a los términos de la GNU General Public License v3.0.
6 | Puedes obtener una copia de la GPL en http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Créditos
9 |
Adblock Plus contiene código de los siguientes proyectos:
Así es como se configura el proxy de la conexión Wi-Fi para Adblock Plus:
2 |
3 | • Abre ajustes inalámbricos
4 | • Mantén pulsada tu conexión de red hasta que aparezca el menú contextual
5 | • Selecciona Modificar la red
6 | • Habilita la casilla Mostrar las opciones avanzadas
7 | • Busca Configuración de proxy abajo y establécela en Manual
8 | • Configura el Nombre de host proxy como localhost y el Puerto proxy como %d
9 |
2 | Parece que tu dispositivo está corriendo sobre Android 2.3 o uno más antiguo.
3 | Esta versión de Android no permite configurar un proxy,
4 | pero varios fabricantes han agregado ajustes para sus dispositivos.
5 | Echa un vistazo a nuestras instrucciones específicas por dispositivo.
6 |
7 |
8 |
9 | Si tu dispositivo admite configurar un proxy,
10 | utiliza localhost como nombre de host y %d como número de puerto.
11 |
2 | Näyttää että laitteesi käyttää Android 2.3 tai siitä vanhempaa versiota.
3 | Tämä Android versio ei tue proxy asetuksien muuttamista, mutta osa valmistajista on tehnyt sen mahdolliseksi laitteisiinsa.
4 | Katso myös laitekohtaisia ohjeita.
5 |
6 |
7 |
8 | Jos laitteesi tukee välityspalvelimen määritystä, aseta välityspalvelimen osoitteeksi localhost ja välityspalvelimen porttinumeroksi %d.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
3 | • פתח הגדרות רשת אלחוטית • גע והחזק על הרשת שאתה מחובר אליה עד שהתפריט מופיע • בחר שנה רשת • בחר הראה הגדרות מתקדמות • • חפש הגדרות פרוסקי ושנה את זה ל ידני<1/> • שנה פרוסקי לlocalhost ןפורט ל%d0>
4 |
2 | נראה שאתה משתמש בגרסת אנדרואיד 2.3 או ישנה יותר.
3 | גרסה זה של אנדרואיד לא תומכת בהגדרת פרוסקי אבל חלק מהיצרניות הוסיפו אפשרות כזאת למכשיריהם.
4 | הוראות ספציפיות למכשיר.
5 |
6 |
7 |
8 | אם מכשירך אינו תומר בהגדרת פרוסקי השתמש בבקשה localhost כשם מארח ו %d כמספר פורט.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
Ovako možete podesiti Wi-Fi proxy za Adblock Plus:
2 |
3 | • Otvorite Bežićne postavke • Dotaknite i držite povezanu mrežu sve dok se ne pojavi kontekstualni izbornik • Odaberite Izmijeni mrežu • Provjerite Prikaži napredne mogućnosti • Potražite ispod Proxy postavke i postavite ih na Ručno • Postavite Proxy na localhost i Ulaz na %d
4 |
2 | Izgleda da vaš uređaj pokreće Android 2.3 ili stariji.
3 | Ova inačica Androida ne podržava podešavanje proxya, ali nekoliko proizvođača je dodalo postavke za podešavanje proxya na njihove uređaje.
4 | Pogledajte naše upute za određene-uređaje.
5 |
6 |
7 |
8 | Ako vaš uređaj ne podržava podešavanje proxya, koristite localhost kao naziv računala i %d kao broj ulaza.
9 |
Ez a program a GNU General Public License v3.0 feltételei alá tartozik.
6 | A GPL egy másolata a következő címen szerezhető be: http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Készítők
9 |
Az Adblock Plus az alábbi projektekből tartalmaz kódot:
Így tudja a Wi-Fi proxy-t konfigurálni az Adblock Plus-hoz:
2 |
3 | • Nyissa meg a vezeték nélküli beállításokat
4 | • Érintse meg és tartsa lenyomva azt a hálózatot, amelyhez csatlakozik addig, amíg a menü meg nem jelenik
5 | • Válassza a Hálózat módosítása lehetőséget
6 | • Jelölje be a Fejlett beállítások mutatása jelölőnégyzetet
7 | • Keresse meg a Proxy beállításokat és állítsa Kézire
8 | • Állítsa a Proxytlocalhost-ra és a Portot%d-re
9 |
2 | Úgy tűnik, hogy az Ön eszközén Android 2.3 vagy régebbi rendszer fut.
3 | Az Android ezen verziója nem támogatja proxy konfigurálását,
4 | de számos gyártó készülékeiben megtalálhatóak az ehhez szükséges beállítások.
5 | Vessen egy pillantást a különböző eszközökre vonatkozó utasításainkra.
6 |
7 |
8 |
9 | Amennyiben készüléke támogatja proxy beállítását,
10 | kérjük, használja a localhost hosztnevet és a %d portszámot.
11 |
Questo programma è soggetto ai termini della licenza GNU General Public License v3.0. Puoi ottenere una copia del GPL pesso http://www.gnu.org/licenses/gpl.html.
5 |
6 |
Crediti
7 |
Adblock Plus contiene codice derivante dai seguenti progetti:
3 | • Apri impostazioni wireless • Tocca e tieni premuto sulla connessione attiva fino a che non appare il menù contestuale • Seleziona Modifica network • Apri Visualizza opzioni avanzate • Cerca Impostazioni proxy ed impostalo su Manuale • Imposta Proxy su localhost e Porta su %d
4 |
2 | Sembra che nel tuo dispositivo sia in esecuzione Android 2.3 o versioni precedenti.
3 | Questa versione di Android non supporta la configurazione proxy, ma svariati produttori hanno aggiunto delle opzioni a riguardo nei loro dispositivi.
4 | Dai un'occhiata alle nostre istruzioni specifiche per dispositivi.
5 |
6 |
7 |
8 | Se il tuo dispositivo non supporta la configurazione proxy, usa localhost come nome host e %d come numero porta.
9 |
3 | • 무선 네트워크 설정을 열어줍니다 • 추가 설정 메뉴가 나타날때까지 연결된 네트워크를 꾹 누릅니다 • 네트워크 설정 을 눌러줍니다 • 고급 설정 열기를 클릭합니다. • 프록시 설정 을 찾은 뒤, 설정합니다수동 설정으로 설정합니다 • 로컬 호스트를 %d 로 설정한 뒤,%d0> 로 포트를 설정합니다.0>
4 |
Ši programa gali būti naudojama tik pagalGNU General Public licencijos v3.0 leidimą.
5 | GPL licencijos kopiją galite gauti http://www.gnu.org/licenses/gpl.html.
Norint jog Adblock Plus veiktų tinkamai, Wi-Fi turėtumėte nustatyti taip:
2 |
3 | • Atverkite belaidžio interneto nustatymus • Palieskite ir laikykite tinklą prie kurio prisijungta tol kol atsiras kontekstinis meniu • Pasirinkite Taisyti tinklą • PažymėkiteRodyti papildomas parinktis • Ieškokite Tarpinio serverio nustatymų ir nustatykite į Rankinis • NustatykiteTarpinį serverį į localhost ir Prievadą į %d
4 |
2 | Atrodo jūsų įrenginyje įdiegta Android 2.3 ar senesnė.
3 | Ši Android versija nepalaiko tarpinio serverio nustatymo,
4 | bet keli gamintojai savo įrenginiuose pridėjo savo nustatymus.
5 | Pažiūrėkite mūsų instrukcijas konkretiems įrenginiams.
6 |
7 |
8 |
9 | Jei jūsų įrenginys nepalaiko tarpinio serverio konfigūracijos,
10 | kaip serverį naudokite localhost ir %d kaip prievadą.
11 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
Dette programmet er underlagt villkårene i GNU General Public License v3.0.
6 | Du kan skaffe en kopi av avtalen på http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Krediteres
9 |
Adblock Plus inneholder kode fra følgende prosjekter:
Slik konfigurerer du Wi-Fi proxy for Adblock Plus:
2 |
3 | • Åpne Wi-Fi under Trådløst og nettverk i Innstillinger
4 | • Trykk og hold på det tilkoblede nettverket til kontekstmenyen vises
5 | • Velg Endre nettverkskonfig.
6 | • Kryss av Vis avanserte alternativer
7 | • Sett Proxy-innstillinger under til Manuelt
8 | • Sett Navn på proxy-vert til localhost og Proxy-port til %d
9 |
2 | Det ser ut som om din enhet kjører Android 2.3 eller eldre.
3 | Denne versjonen av Android støtter ikke oppsett av proxy, men flere produsenter har lagt til innstillinger for dette i sine enheter.
4 | Ta en titt på våre enhetsspesifikke instruksjoner.
5 |
6 |
7 |
8 | Hvis din enhet ikke støtter oppsett av proxy, vennligst bruk localhost som vertsnavn og %d som portnummer.
9 |
Dit programma is onderhevig aan de voorwaarden van de GNU General Public License v3.0. U kunt een kopie van de GPL verkrijgen op http://www.gnu.org/licenses/gpl.html.
6 |
7 |
Credits
8 |
Adblock Plus bevat code van de volgende projecten:
Zo kunt u de wifi-proxy voor Adblock Plus configureren:
2 |
3 | • Open draadloze instellingen
4 | • Houd uw vinger op het verbonden netwerk totdat het contextmenu verschijnt
5 | • Selecteer Netwerk aanpassen
6 | • Plaats een vinkje bij Geavanceerde opries tonen
7 | • Zoek naar Proxyinstellingen en stel deze in op Handmatig
8 | • Stel Proxy in op localhost en Poort op %d
9 |
2 | Het lijkt alsof uw apparaat op Android 2.3 of ouder draait.
3 | Het configureren van een proxy wordt niet door deze versie van Android ondersteund, maar diverse fabrikanten hebben hiervoor mogelijkheden aan hun apparaten toegevoegd.
4 | Bekijk onze apparaatspecifieke instructies.
5 |
6 |
7 |
8 | Als uw apparaat ondersteuning biedt voor het configureren van een proxy, gebruik dan localhost als de hostnaam en %d als het poortnummer.
9 |
Oto jak należy skonfigurować proxy WiFi dla Adblock Plus:
2 |
3 | • Otwórz ustawienia bezprzewodowe
4 | • Dotknij i przytrzymaj połączoną sieć do chwili, gdy pojawi się menu kontekstowe
5 | • Wybierz Modyfikuj sieć
6 | • Zaznacz Pokaż ustawienia zaawansowane
7 | • Znajdź Ustawienia serwera proxy poniżej i ustaw wartość na Ręczne
8 | • Ustaw Proxy na localhost i Port na %d
9 |
2 | Wygląda na to, że twoje urządzenie posiada system Android w wersji 2.3 lub niższej.
3 | Ta wersja systemu nie posiada wsparcia dla konfiguracji serwera proxy,
4 | aczkolwiek kilku producentów urządzeń dodało możliwość jego ustawienia.
5 | Sprawdź nasze instrukcje dla konkretnych urządzeń.
6 |
7 |
8 |
9 | Jeśli twoje urządzenie wspiera konfigurację serwera proxy, wprowadź localhost jako nazwę hosta i %d jako numer portu.
10 |
Assim é como você configura o proxy de acesso Wi-Fi do Adblock Plus:
2 |
3 | • Abra as configurações wireless • Toque e segure a rede conectada até o menu de contexto aparecer • Selecione Modificar rede • Marque Mostrar opções avançadas • Veja por Configurações proxy abaixo e defina em Manual • Defina Proxy para localhost e Porta para %d
4 |
2 | Parece que o seu dispositivo está executando o Android 2.3 ou anterior.
3 | Esta versão do Android não oferece suporte a configuração de um proxy, mas vários fabricantes tem adicionado estas configurações em seus dispositivos.
4 | Dê uma olhada em nossas instruções específicas do dispositivo.
5 |
6 |
7 |
8 | Se o dispositivo suportar a configuração de um proxy, use localhost como o nome do host e %d como número da porta.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
Использование и распространение этой программы регулируется условиями GNU General Public License v3.0. Вы можете получить копию GPL на http://www.gnu.org/licenses/gpl.html.
Для настройки Wi-Fi прокси для Adblock Plus нужно выполнить следующие шаги:
2 |
3 | • Откройте настройки Wi-Fi • Нажмите и удерживайте подключенную сеть пока не появится контекстное меню • Выберите Изменить конфигурицию сети • Отметьте флажок Показать дополнительные параметры • Найдите ниже Настройки прокси и выберите в списке вручную • Введите имя узла проксиlocalhost и Порт прокси%d
4 |
2 | Кажется ваше устройство работает на Android 2.3 или более ранней версии.
3 | Эта версия Android не поддерживает настройку прокси, но некоторые производители добавили эти настройки в свои устройства.
4 | Взгляните на наши инструкции для конкретных устройств.
5 |
6 |
7 |
8 | Если ваше устройство поддерживает настройку прокси-сервера, пожалуйста используйте localhost для имени хоста и %d для номера порта.
9 |
Toto je návod, ako nastaviť Wi-Fi proxy pre AdBlock Plus:
2 |
3 | • Otvorte nastavenie bezdrôtovej siete • Stlačte a podržte pripojenie k sieti až dovtedy kým sa zobrazí kontextové menu • Vyberte upraviť sieť • Začiarknite zobraziť rozšírené možnosti • Hľadajte proxy nastavenia nižšie a nastavte ju na manuál • Nastavte proxy na localhost a port na%d
4 |
2 | Vyzerá to tak že váš prístroj beží na Androide 2.3 alebo staršom.
3 | Táto verzia Androidu nepodporuje konfiguráciu proxy, ale niekoľko výrobcov pridali nastavenia pre ich zariadenia.
4 | Pozrite sa na naše špecifické pokyny.
5 |
6 |
7 |
8 | Ak vaše zariadenie nepodporuje konfiguráciu proxy, prosím, použite localhost ako názov hostiteľa a %d ako číslo portu.
9 |
3 | • Odprite brezžične nastavitve • Dotaknite se izbranega omrežja in ga držite, dokler se ne pojavi kontekstni meni • Izberite Spremeni omrežje • Potrdite Pokaži napredne možnosti • Spodaj poiščite Nastavitve proxy in ga nastavite na Ročno • Nastavite Proxy na localhost in Vrata na %d
4 |
2 | Vaša naprava očitno uporablja Android 2.3 ali starejšega.
3 | Ta različica Androida ne podpira nastavljanja strežnika proxy, vendar je nekaj proizvajalcev dodalo nastavitve za to v njihove naprave.
4 | Oglejte si naša posebna navodila za naprave.
5 |
6 |
7 |
8 | Če vaša naprava podpira nastavljanje strežnika proxy, uporabite localhost za ime gostitelja in %d za številko vrat.
9 |
Прокси у бежичној мрежи за Adblock Plus можете да подесите на следећи начин:
2 |
3 | • Отворите поставке бежичне везе • Додирните и држите повезану мрежу све док се не појави контекстуални мени • Изаберите Измени мрежу • Означите Прикажи напредне опције • Под Подешавања за прокси изаберите Ручно • Поставите Име хоста за прокси на localhost а Прокси порт на %d
4 |
2 | Изгледа да ваш уређај покреће Android 2.3 или старији.
3 | Ова верзија Android-а не подржава подешавање проксија, но неки произвођачи су сами додали ту могућност на своје уређаје.
4 | Погледајте наше упутство за одређене уређаје.
5 |
6 |
7 |
8 | Уколико ваш уређај не подржава подешавање проксија, користите localhost као име главног рачунара и %d као број порта.
9 |
Så här konfigurerar du Wi-Fi-proxy för Adblock Plus:
2 |
3 | • Öppna trådlösa inställningar • Tryck och håll det anslutna nätverket tills snabbmenyn visas • Välj ändra nätverk • kontrollera Visa avancerade alternativ • leta efter Proxy-inställningar nedan och ställ in den till manuell • Set Proxy till localhost och Port till %d
4 |
2 | Det verkar som om din enhet kör Android 2.3 eller äldre.
3 | Denna version av Android stöder inte konfigurering av proxy, men flera tillverkare har lagt till inställningar för detta i sina enheter.
4 | Ta en titt på våra enhets-specifika instruktioner.
5 |
6 |
7 |
8 | Om din enhet har stöd för konfigurering av proxy, använd då localhost som värdnamn och %d som portnummer.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
3 | • Kablosuz ağ ayarlarını açın • Menü açılana kadar bağlantıya dokunup basılı tutun • Select Modify network • Check Show advanced options • Look for Proxy settings below and set it to Manual • Set Proxy to localhost and Port to %d
4 |
2 | Cihazınızda Android 2.3 veya daha eski sürüm kullandığınız görülüyor.
3 | Android'in bu sürümü bir vekil yapılandırmasını desteklemiyor, ancak birkaç üretici aygıtları için bu seçenekleri ekledi.
4 | Cihazlara bağlı talimatlarımıza bakın.
5 |
6 |
7 |
8 | Eğer cihazınız bir vekil yapılandırmayı destekliyorsa, lütfen sunucu adı olarak localhost ve bağlantı noktası olarak %d kullanın.
9 |
2 | Схоже на те, що Ваш пристрій працює на базі Android 2.3 або й старіше.
3 | Ця версія Android не підтримує зміну проксі сервера, але деякі виробники додають можливість робити такі зміни на свої пристрої.
4 | Будь ласка гляньте на наші інструкції для налаштування на конкретних пристроях.
5 |
6 |
7 |
8 | Якщо Ваш пристрій таки підтримує зміну проксі сервера, будь ласка введіть localhost як ім'я хоста та %d я номер порта.
9 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
This program is subject to the terms of the GNU General Public License v3.0.
6 | You can obtain a copy of the GPL at http://www.gnu.org/licenses/gpl.html.
7 |
8 |
Credits
9 |
Adblock Plus contains code from the following projects:
This is how you configure the Wi-Fi proxy for Adblock Plus:
2 |
3 | • Open wireless settings
4 | • Touch and hold the connected network until the context menu appears
5 | • Select Modify network
6 | • Check Show advanced options
7 | • Look for Proxy settings below and set it to Manual
8 | • Set Proxy to localhost and Port to %d
9 |
2 | It seems like your device is running Android 2.3 or older.
3 | This version of Android does not support configuring a proxy,
4 | but several manufacturers have added settings for that to their devices.
5 | Take a look at our device-specific instructions.
6 |
7 |
8 |
9 | If your device does support configuring a proxy,
10 | please use localhost as the host name and %d as the port number.
11 |
12 |
--------------------------------------------------------------------------------
/res/values-ar/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | يدوياً
6 | في البداية
7 | بشكل دوري
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-bg/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ръчно
6 | При стартиране
7 | Периодично
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-ca/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manualment
6 | Al començament
7 | Periòdicament
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-cs/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ručně
6 | Při startu
7 | Pravidelně
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-da/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-de/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuell
6 | Beim Start
7 | In regelmäßigen Abständen
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-el/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Χειροκίνητα
6 | Κατά την εκκίνηση
7 | Περιοδικά
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-es/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manualmente
6 | Al Iniciar
7 | Periódicamente
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-fi/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuaalisesti
6 | Käynnistyksessä
7 | Säännöllisesti
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-fr/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-he/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ידני
6 | בהפעלה
7 | במחזוריות
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-hi/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-hr/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ručno
6 | Pri pokretanju
7 | Povremeno
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-hu/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuális
6 | Indításnál
7 | Rendszeres
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-it/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manualmente
6 | All\'avvio
7 | Periodicamente
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-ja/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 手動
6 | 起動時
7 | 定期的
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-ko/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 수동으로
6 | 시작
7 | 주기적으로
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-lt/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Rankiniu būdu
6 | Paleidžiant
7 | Periodiškai
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-lv/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-nb/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuelt
6 | Ved start
7 | Periodisk
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-nl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Handmatig
6 | Bij starten
7 | Periodiek
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-pl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ręcznie
6 | Podczas uruchamiania
7 | Okresowo
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-pt/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manualmente
6 | Ao iniciar
7 | Periodicamente
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-ro/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-ru/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Вручную
6 | При запуске
7 | Периодически
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-sk/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuálne
6 | Pri štarte
7 | Pravidelne
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-sl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ročno
6 | Ob zagonu
7 | Občasno
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-sr/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ручно
6 | При покретању
7 | Редовно
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-sv/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuellt
6 | Vid start
7 | Periodiskt
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-th/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ด้วยตนเอง
6 | เมื่อเริ่ม
7 | เป็นระยะ
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-tl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-tr/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manuel
6 | Başlangıçta
7 | Periyodik olarak
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-uk/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Вручну
6 | При запуску
7 | Періодично
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-vi/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Manually
6 | On start
7 | Periodically
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-zh-rCN/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 手动
6 | 启动时
7 | 定期
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values-zh/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 手動
6 | 啟動時
7 | 定時
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Manually
5 | On start
6 | Periodically
7 |
8 |
9 |
--------------------------------------------------------------------------------
/res/values/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | false
5 | true
6 | true
7 | true
8 |
9 |
--------------------------------------------------------------------------------
/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2
4 | 0
5 |
6 |
--------------------------------------------------------------------------------
/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/res/values/sysarrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 | 1
6 | 2
7 | 3
8 |
9 |
10 |
--------------------------------------------------------------------------------
/res/values/sysstrings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | https://adblockplus.org/androidupdates.xml?api=%1$d&build=%2$d&locale=%3$s&device=%4$s
5 | https://adblockplus.org/devbuilds/adblockplusandroid/updates.xml?api=%1$d&build=%2$d&locale=%3$s&device=%4$s
6 | https://crashes.adblockplus.org/submitCrash?version=1
7 |
8 | enabled
9 | proxyenabled
10 | acceptableads
11 | startatboot
12 | subscription
13 | hideicon
14 | refresh
15 | wifirefresh
16 | advanced
17 | proxy
18 | proxyhost
19 | proxyport
20 | proxyuser
21 | proxypass
22 | support
23 | crashreport
24 | checkupdate
25 | configuration
26 | versioncode
27 | proxy_autoconfigured
28 | lastport
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/xml/preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
13 |
14 |
19 |
20 |
25 |
26 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/AndroidFilterChangeCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | import org.adblockplus.libadblockplus.FilterChangeCallback;
21 | import org.adblockplus.libadblockplus.JsValue;
22 | import org.adblockplus.libadblockplus.Subscription;
23 |
24 | import android.content.Context;
25 |
26 | public class AndroidFilterChangeCallback extends FilterChangeCallback
27 | {
28 | private final Context context;
29 |
30 | public AndroidFilterChangeCallback(final Context context)
31 | {
32 | this.context = context;
33 | }
34 |
35 | @Override
36 | public void filterChangeCallback(final String action, final JsValue jsValue)
37 | {
38 | if (action.equals("subscription.lastDownload") || action.equals("subscription.downloadStatus"))
39 | {
40 | final Subscription sub = new Subscription(jsValue);
41 |
42 | Utils.updateSubscriptionStatus(this.context, sub);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/AndroidLogSystem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | import org.adblockplus.libadblockplus.LogSystem;
21 |
22 | import android.util.Log;
23 |
24 | public class AndroidLogSystem extends LogSystem
25 | {
26 | private static int abpLogLevelToAndroid(final LogLevel level)
27 | {
28 | switch (level)
29 | {
30 | default:
31 | case TRACE:
32 | case LOG:
33 | return Log.VERBOSE;
34 | case INFO:
35 | return Log.INFO;
36 | case WARN:
37 | return Log.WARN;
38 | case ERROR:
39 | return Log.ERROR;
40 | }
41 | }
42 |
43 | @Override
44 | public void logCallback(final LogLevel level, final String message, final String source)
45 | {
46 | Log.println(abpLogLevelToAndroid(level), source, message);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/AndroidUpdateAvailableCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | import org.adblockplus.libadblockplus.UpdateAvailableCallback;
21 |
22 | import android.content.Context;
23 |
24 | public class AndroidUpdateAvailableCallback extends UpdateAvailableCallback
25 | {
26 | private final Context context;
27 |
28 | public AndroidUpdateAvailableCallback(final Context context)
29 | {
30 | this.context = context;
31 | }
32 |
33 | @Override
34 | public void updateAvailableCallback(String url)
35 | {
36 | Utils.showUpdateNotification(this.context, url, null);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/AndroidUpdateCheckDoneCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | import org.adblockplus.libadblockplus.UpdateCheckDoneCallback;
21 | import org.apache.commons.lang.StringUtils;
22 |
23 | import android.content.Context;
24 | import android.util.Log;
25 |
26 | public class AndroidUpdateCheckDoneCallback extends UpdateCheckDoneCallback
27 | {
28 | private static final String TAG = Utils.getTag(AndroidUpdateCheckDoneCallback.class);
29 |
30 | private final Context context;
31 |
32 | public AndroidUpdateCheckDoneCallback(final Context context)
33 | {
34 | this.context = context;
35 | }
36 |
37 | @Override
38 | public void updateCheckDoneCallback(final String error)
39 | {
40 | if (StringUtils.isEmpty(error))
41 | return;
42 | Log.e(TAG, "Update check failed: " + error);
43 | Utils.showUpdateNotification(this.context, null, error);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/ProxyConfigurationActivity.java:
--------------------------------------------------------------------------------
1 | package org.adblockplus.android;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.provider.Settings;
7 | import android.text.Html;
8 | import android.text.method.LinkMovementMethod;
9 | import android.view.View;
10 | import android.widget.Button;
11 | import android.widget.TextView;
12 |
13 | public class ProxyConfigurationActivity extends Activity
14 | {
15 | @Override
16 | public void onCreate(final Bundle savedInstanceState)
17 | {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.proxyconfiguration);
20 | final int port = getIntent().getIntExtra("port", 0);
21 |
22 | final StringBuilder info = new StringBuilder();
23 | final int textId = ProxyService.GLOBAL_PROXY_USER_CONFIGURABLE ? R.raw.proxysettings : R.raw.proxysettings_old;
24 | Utils.appendRawTextFile(this, info, textId);
25 | final String msg = String.format(info.toString(), port);
26 |
27 | final TextView tv = (TextView) findViewById(R.id.message_text);
28 | tv.setText(Html.fromHtml(msg));
29 | tv.setMovementMethod(LinkMovementMethod.getInstance());
30 |
31 | final Button buttonToHide = (Button) findViewById(ProxyService.GLOBAL_PROXY_USER_CONFIGURABLE ? R.id.gotit : R.id.opensettings);
32 | buttonToHide.setVisibility(View.GONE);
33 | }
34 |
35 | public void onGotit(final View view)
36 | {
37 | finish();
38 | }
39 |
40 | public void onSettings(final View view)
41 | {
42 | startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));
43 | finish();
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/ProxyServerType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | public enum ProxyServerType
21 | {
22 | UNKNOWN,
23 | /** A pure http proxy */
24 | HTTP,
25 | /** Http and https proxy. */
26 | HTTPS
27 | }
28 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/Subscription.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android;
19 |
20 | public class Subscription
21 | {
22 | public String title;
23 | public String specialization;
24 | public String url;
25 | public String homepage;
26 | public String[] prefixes;
27 | public String author;
28 | }
29 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/compat/CompatibilityException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android.compat;
19 |
20 | /**
21 | * Checked exception to indicate any problems/errors inside the compatibility layer (mostly reflection specific errors).
22 | */
23 | public class CompatibilityException extends Exception
24 | {
25 | private static final long serialVersionUID = -6583503345769050560L;
26 |
27 | public CompatibilityException(final String message)
28 | {
29 | super(message);
30 | }
31 |
32 | public CompatibilityException(final String message, final Throwable throwable)
33 | {
34 | super(message, throwable);
35 | }
36 |
37 | public CompatibilityException(final Throwable throwable)
38 | {
39 | super(throwable);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/org/adblockplus/android/configurators/ProxyRegistrationType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.android.configurators;
19 |
20 | import org.adblockplus.android.ProxyServerType;
21 |
22 | public enum ProxyRegistrationType
23 | {
24 | UNKNOWN(ProxyServerType.UNKNOWN, false),
25 | CYANOGENMOD(ProxyServerType.HTTPS, true),
26 | IPTABLES(ProxyServerType.HTTP, true),
27 | NATIVE(ProxyServerType.HTTPS, true),
28 | MANUAL(ProxyServerType.HTTPS, false);
29 |
30 | private final ProxyServerType proxyType;
31 | private final boolean autoConfigured;
32 |
33 | private ProxyRegistrationType(final ProxyServerType proxyType, final boolean autoConfigured)
34 | {
35 | this.proxyType = proxyType;
36 | this.autoConfigured = autoConfigured;
37 | }
38 |
39 | public ProxyServerType getProxyType()
40 | {
41 | return this.proxyType;
42 | }
43 |
44 | public boolean isAutoConfigured()
45 | {
46 | return this.autoConfigured;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/org/adblockplus/brazil/TransparentProxyHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.brazil;
19 |
20 | import java.io.IOException;
21 |
22 | import sunlabs.brazil.server.Handler;
23 | import sunlabs.brazil.server.Request;
24 | import sunlabs.brazil.server.Server;
25 |
26 | /**
27 | * Reconstructs request url to comply with proxy specification if transparent
28 | * proxy is used.
29 | */
30 | public class TransparentProxyHandler implements Handler
31 | {
32 |
33 | @Override
34 | public boolean init(final Server server, final String prefix)
35 | {
36 | return true;
37 | }
38 |
39 | @Override
40 | public boolean respond(final Request request) throws IOException
41 | {
42 | if (!RequestHandler.RE_HTTP.matcher(request.url).find())
43 | {
44 | request.url = "http://" + request.headers.get("host") + request.url;
45 | }
46 | return false;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/AdblockPlusException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public class AdblockPlusException extends RuntimeException
21 | {
22 | private static final long serialVersionUID = -8127654134450836743L;
23 |
24 | public AdblockPlusException(final String message)
25 | {
26 | super(message);
27 | }
28 |
29 | public AdblockPlusException(final String message, final Throwable throwable)
30 | {
31 | super(message, throwable);
32 | }
33 |
34 | public AdblockPlusException(final Throwable throwable)
35 | {
36 | super(throwable);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/Disposable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public interface Disposable
21 | {
22 | public void dispose();
23 | }
24 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/EventCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | import java.util.List;
21 |
22 | public abstract class EventCallback implements Disposable
23 | {
24 | private final Disposer disposer;
25 | protected final long ptr;
26 |
27 | static
28 | {
29 | System.loadLibrary("adblockplus-jni");
30 | registerNatives();
31 | }
32 |
33 | public EventCallback()
34 | {
35 | this.ptr = ctor(this);
36 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
37 | }
38 |
39 | public abstract void eventCallback(List params);
40 |
41 | @Override
42 | public void dispose()
43 | {
44 | this.disposer.dispose();
45 | }
46 |
47 | private final static class DisposeWrapper implements Disposable
48 | {
49 | private final long ptr;
50 |
51 | public DisposeWrapper(final long ptr)
52 | {
53 | this.ptr = ptr;
54 | }
55 |
56 | @Override
57 | public void dispose()
58 | {
59 | dtor(this.ptr);
60 | }
61 | }
62 |
63 | private final static native void registerNatives();
64 |
65 | private final static native long ctor(Object obj);
66 |
67 | private final static native void dtor(long ptr);
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/FilterChangeCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public abstract class FilterChangeCallback implements Disposable
21 | {
22 | private final Disposer disposer;
23 | protected final long ptr;
24 |
25 | static
26 | {
27 | System.loadLibrary("adblockplus-jni");
28 | registerNatives();
29 | }
30 |
31 | public FilterChangeCallback()
32 | {
33 | this.ptr = ctor(this);
34 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
35 | }
36 |
37 | public abstract void filterChangeCallback(String action, JsValue jsValue);
38 |
39 | @Override
40 | public void dispose()
41 | {
42 | this.disposer.dispose();
43 | }
44 |
45 | private final static class DisposeWrapper implements Disposable
46 | {
47 | private final long ptr;
48 |
49 | public DisposeWrapper(final long ptr)
50 | {
51 | this.ptr = ptr;
52 | }
53 |
54 | @Override
55 | public void dispose()
56 | {
57 | dtor(this.ptr);
58 | }
59 | }
60 |
61 | private final static native void registerNatives();
62 |
63 | private final static native long ctor(Object callbackObject);
64 |
65 | private final static native void dtor(long ptr);
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/HeaderEntry.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public class HeaderEntry
21 | {
22 | private final String key;
23 | private final String value;
24 |
25 | public HeaderEntry(final String key, final String value)
26 | {
27 | this.key = key;
28 | this.value = value;
29 | }
30 |
31 | public static HeaderEntry of(final String key, final String value)
32 | {
33 | return new HeaderEntry(key, value);
34 | }
35 |
36 | public String getKey()
37 | {
38 | return this.key;
39 | }
40 |
41 | public String getValue()
42 | {
43 | return this.value;
44 | }
45 |
46 | @Override
47 | public int hashCode()
48 | {
49 | return this.key.hashCode() * 31 + this.value.hashCode();
50 | }
51 |
52 | @Override
53 | public boolean equals(final Object o)
54 | {
55 | if (!(o instanceof HeaderEntry))
56 | {
57 | return false;
58 | }
59 | final HeaderEntry other = (HeaderEntry) o;
60 | return this.key.equals(other.key) && this.value.equals(other.value);
61 | }
62 |
63 | @Override
64 | public String toString()
65 | {
66 | return this.key + ": " + this.value;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/LogSystem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public abstract class LogSystem implements Disposable
21 | {
22 | private final Disposer disposer;
23 | protected final long ptr;
24 |
25 | static
26 | {
27 | System.loadLibrary("adblockplus-jni");
28 | registerNatives();
29 | }
30 |
31 | public LogSystem()
32 | {
33 | this.ptr = ctor(this);
34 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
35 | }
36 |
37 | public static enum LogLevel
38 | {
39 | TRACE, LOG, INFO, WARN, ERROR;
40 | }
41 |
42 | public abstract void logCallback(LogLevel level, String message, String source);
43 |
44 | @Override
45 | public void dispose()
46 | {
47 | this.disposer.dispose();
48 | }
49 |
50 | private final static class DisposeWrapper implements Disposable
51 | {
52 | private final long ptr;
53 |
54 | public DisposeWrapper(final long ptr)
55 | {
56 | this.ptr = ptr;
57 | }
58 |
59 | @Override
60 | public void dispose()
61 | {
62 | dtor(this.ptr);
63 | }
64 | }
65 |
66 | private final static native void registerNatives();
67 |
68 | private final static native long ctor(Object callbackObject);
69 |
70 | private final static native void dtor(long ptr);
71 | }
72 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/ShowNotificationCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public abstract class ShowNotificationCallback implements Disposable
21 | {
22 | private final Disposer disposer;
23 | protected final long ptr;
24 |
25 | static
26 | {
27 | System.loadLibrary("adblockplus-jni");
28 | registerNatives();
29 | }
30 |
31 | public ShowNotificationCallback()
32 | {
33 | this.ptr = ctor(this);
34 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
35 | }
36 |
37 | public abstract void showNotificationCallback(Notification jsValue);
38 |
39 | @Override
40 | public void dispose()
41 | {
42 | this.disposer.dispose();
43 | }
44 |
45 | private final static class DisposeWrapper implements Disposable
46 | {
47 | private final long ptr;
48 |
49 | public DisposeWrapper(final long ptr)
50 | {
51 | this.ptr = ptr;
52 | }
53 |
54 | @Override
55 | public void dispose()
56 | {
57 | dtor(this.ptr);
58 | }
59 | }
60 |
61 | private final static native void registerNatives();
62 |
63 | private final static native long ctor(Object callbackObject);
64 |
65 | private final static native void dtor(long ptr);
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/UpdateAvailableCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public abstract class UpdateAvailableCallback implements Disposable
21 | {
22 | private final Disposer disposer;
23 | protected final long ptr;
24 |
25 | static
26 | {
27 | System.loadLibrary("adblockplus-jni");
28 | registerNatives();
29 | }
30 |
31 | public UpdateAvailableCallback()
32 | {
33 | this.ptr = ctor(this);
34 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
35 | }
36 |
37 | public abstract void updateAvailableCallback(String url);
38 |
39 | @Override
40 | public void dispose()
41 | {
42 | this.disposer.dispose();
43 | }
44 |
45 | private final static class DisposeWrapper implements Disposable
46 | {
47 | private final long ptr;
48 |
49 | public DisposeWrapper(final long ptr)
50 | {
51 | this.ptr = ptr;
52 | }
53 |
54 | @Override
55 | public void dispose()
56 | {
57 | dtor(this.ptr);
58 | }
59 | }
60 |
61 | private final static native void registerNatives();
62 |
63 | private final static native long ctor(Object callbackObject);
64 |
65 | private final static native void dtor(long ptr);
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/UpdateCheckDoneCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | public abstract class UpdateCheckDoneCallback implements Disposable
21 | {
22 | private final Disposer disposer;
23 | protected final long ptr;
24 |
25 | static
26 | {
27 | System.loadLibrary("adblockplus-jni");
28 | registerNatives();
29 | }
30 |
31 | public UpdateCheckDoneCallback()
32 | {
33 | this.ptr = ctor(this);
34 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
35 | }
36 |
37 | public abstract void updateCheckDoneCallback(String error);
38 |
39 | @Override
40 | public void dispose()
41 | {
42 | this.disposer.dispose();
43 | }
44 |
45 | private final static class DisposeWrapper implements Disposable
46 | {
47 | private final long ptr;
48 |
49 | public DisposeWrapper(final long ptr)
50 | {
51 | this.ptr = ptr;
52 | }
53 |
54 | @Override
55 | public void dispose()
56 | {
57 | dtor(this.ptr);
58 | }
59 | }
60 |
61 | private final static native void registerNatives();
62 |
63 | private final static native long ctor(Object callbackObject);
64 |
65 | private final static native void dtor(long ptr);
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/adblockplus/libadblockplus/WebRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of Adblock Plus ,
3 | * Copyright (C) 2006-present eyeo GmbH
4 | *
5 | * Adblock Plus is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 3 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Adblock Plus is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with Adblock Plus. If not, see .
16 | */
17 |
18 | package org.adblockplus.libadblockplus;
19 |
20 | import java.util.List;
21 |
22 | public abstract class WebRequest implements Disposable
23 | {
24 | private final Disposer disposer;
25 | protected final long ptr;
26 |
27 | static
28 | {
29 | System.loadLibrary("adblockplus-jni");
30 | registerNatives();
31 | }
32 |
33 | public WebRequest()
34 | {
35 | this.ptr = ctor(this);
36 | this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
37 | }
38 |
39 | public abstract ServerResponse httpGET(String url, List headers);
40 |
41 | @Override
42 | public void dispose()
43 | {
44 | this.disposer.dispose();
45 | }
46 |
47 | private final static class DisposeWrapper implements Disposable
48 | {
49 | private final long ptr;
50 |
51 | public DisposeWrapper(final long ptr)
52 | {
53 | this.ptr = ptr;
54 | }
55 |
56 | @Override
57 | public void dispose()
58 | {
59 | dtor(this.ptr);
60 | }
61 | }
62 |
63 | private final static native void registerNatives();
64 |
65 | private final static native long ctor(Object callbackObject);
66 |
67 | private final static native void dtor(long ptr);
68 | }
69 |
--------------------------------------------------------------------------------