// Path: java/src/main/java/org/astonbitecode/rustkeylock/api/JavaEntry.java
// public class JavaEntry  implements Serializable {
// 
//     public String name;
//     public String url;
//     public String user;
//     public String pass;
//     public String desc;
//     public JavaEntryMeta meta;
// 
//     public JavaEntry() {
// 
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public String getPass() {
//         return pass;
//     }
// 
//     public String getDesc() {
//         return desc;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public void setUser(String user) {
//         this.user = user;
//     }
// 
//     public void setPass(String pass) {
//         this.pass = pass;
//     }
// 
//     public void setDesc(String desc) {
//         this.desc = desc;
//     }
// 
//     public JavaEntryMeta getMeta() {
//         return meta;
//     }
// 
//     public void setMeta(JavaEntryMeta meta) {
//         this.meta = meta;
//     }
// }
// 
// Path: java/src/main/java/org/astonbitecode/rustkeylock/utils/Defs.java
// public class Defs {
//     public static final String MENU_TRY_PASS = "TryPass";
//     public static final String MENU_CHANGE_PASS = "ChangePass";
//     public static final String MENU_MAIN = "Main";
//     public static final String MENU_ENTRIES_LIST = "EntriesList";
//     public static final String MENU_SHOW_ENTRY = "ShowEntry";
//     public static final String MENU_SAVE = "Save";
//     public static final String MENU_EXIT = "Exit";
//     public static final String MENU_FORCE_EXIT = "ForceExit";
//     public static final String MENU_EDIT_ENTRY = "EditEntry";
//     public static final String MENU_DELETE_ENTRY = "DeleteEntry";
//     public static final String MENU_NEW_ENTRY = "NewEntry";
//     public static final String MENU_EXPORT_ENTRIES = "ExportEntries";
//     public static final String MENU_IMPORT_ENTRIES = "ImportEntries";
//     public static final String MENU_SHOW_CONFIGURATION = "ShowConfiguration";
//     public static final String MENU_SET_DB_TOKEN = "SetDbxToken";
//     public static final String MENU_CURRENT = "Current";
//     public static final String EMPTY_ARG = "null";
//     public static final String CHECK_PASSWORDS = "CheckPasswords";
//     public static final int BACKROUND_ERROR = Color.argb(255, 246, 147, 100);
//     public static final int BACKROUND_NO_ERROR = Color.TRANSPARENT;
// }


import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.astonbitecode.rustkeylock.R;
import org.astonbitecode.rustkeylock.api.JavaEntry;
import org.astonbitecode.rustkeylock.utils.Defs;
import java.util.List;
// Copyright 2017 astonbitecode
// This file is part of rust-keylock password manager.
//
// rust-keylock is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// rust-keylock 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.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with rust-keylock.  If not, see <http://www.gnu.org/licenses/>.
package org.astonbitecode.rustkeylock.adapters;



public class EntriesAdapter extends ArrayAdapter<JavaEntry> {
    private List<JavaEntry> entries;
// Path: java/src/main/java/org/astonbitecode/rustkeylock/api/JavaEntry.java
// public class JavaEntry  implements Serializable {
// 
//     public String name;
//     public String url;
//     public String user;
//     public String pass;
//     public String desc;
//     public JavaEntryMeta meta;
// 
//     public JavaEntry() {
// 
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public String getPass() {
//         return pass;
//     }
// 
//     public String getDesc() {
//         return desc;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public void setUser(String user) {
//         this.user = user;
//     }
// 
//     public void setPass(String pass) {
//         this.pass = pass;
//     }
// 
//     public void setDesc(String desc) {
//         this.desc = desc;
//     }
// 
//     public JavaEntryMeta getMeta() {
//         return meta;
//     }
// 
//     public void setMeta(JavaEntryMeta meta) {
//         this.meta = meta;
//     }
// }
// 
// Path: java/src/main/java/org/astonbitecode/rustkeylock/utils/Defs.java
// public class Defs {
//     public static final String MENU_TRY_PASS = "TryPass";
//     public static final String MENU_CHANGE_PASS = "ChangePass";
//     public static final String MENU_MAIN = "Main";
//     public static final String MENU_ENTRIES_LIST = "EntriesList";
//     public static final String MENU_SHOW_ENTRY = "ShowEntry";
//     public static final String MENU_SAVE = "Save";
//     public static final String MENU_EXIT = "Exit";
//     public static final String MENU_FORCE_EXIT = "ForceExit";
//     public static final String MENU_EDIT_ENTRY = "EditEntry";
//     public static final String MENU_DELETE_ENTRY = "DeleteEntry";
//     public static final String MENU_NEW_ENTRY = "NewEntry";
//     public static final String MENU_EXPORT_ENTRIES = "ExportEntries";
//     public static final String MENU_IMPORT_ENTRIES = "ImportEntries";
//     public static final String MENU_SHOW_CONFIGURATION = "ShowConfiguration";
//     public static final String MENU_SET_DB_TOKEN = "SetDbxToken";
//     public static final String MENU_CURRENT = "Current";
//     public static final String EMPTY_ARG = "null";
//     public static final String CHECK_PASSWORDS = "CheckPasswords";
//     public static final int BACKROUND_ERROR = Color.argb(255, 246, 147, 100);
//     public static final int BACKROUND_NO_ERROR = Color.TRANSPARENT;
// }


// Path: java/src/main/java/org/astonbitecode/rustkeylock/adapters/EntriesAdapter.java
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.astonbitecode.rustkeylock.R;
import org.astonbitecode.rustkeylock.api.JavaEntry;
import org.astonbitecode.rustkeylock.utils.Defs;
import java.util.List;

// Copyright 2017 astonbitecode
// This file is part of rust-keylock password manager.
//
// rust-keylock is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// rust-keylock 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.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with rust-keylock.  If not, see <http://www.gnu.org/licenses/>.
package org.astonbitecode.rustkeylock.adapters;



public class EntriesAdapter extends ArrayAdapter<JavaEntry> {
    private List<JavaEntry> entries;
    private Context context;