package com.base.pdfviewerscannerwhite.bean

import com.base.pdfviewerscannerwhite.utils.AppPreferences


object ConstObject {


    const val MIME_TYPE_IMAGE = "image/*"
    const val MIME_TYPE_VIDEO = "video/*"
    const val MIME_TYPE_AUDIO = "audio/*"
    const val MIME_TYPE_PDF = "application/pdf"
    const val MIME_TYPE_DOC = "application/msword"
    const val MIME_TYPE_DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
    const val MIME_TYPE_XLS = "application/vnd.ms-excel"
    const val MIME_TYPE_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    const val MIME_TYPE_PPT = "application/vnd.ms-powerpoint"
    const val MIME_TYPE_PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
    const val MIME_TYPE_APK = "application/vnd.android.package-archive"
    const val MIME_TYPE_ZIP = "application/zip"


    const val DO_SPLIT_PDF = "do_split_pdf"
    const val DO_SAVE_PDF = "do_save_pdf"
    const val DO_MERGE_PDF = "do_merge_pdf"
    const val DO_LOCK_PDF = "do_lock_pdf"
    const val DO_UNLOCK_PDF = "do_unlock_pdf"

    const val DOCUMENT_DATA_TYPE = "document"
    const val RECENT_DATA_TYPE = "recent"
    const val BOOKMARK_DATA_TYPE = "bookmark"

    const val UI_MODE_NORMAL = "ui_mode_normal"
    const val UI_MODE_SELECT = "ui_mode_select"
    const val UI_MODE_SEARCH = "ui_mode_search"

    const val UI_SORT_LAST_MODIFIED = "ui_sort_last_modified"
    const val UI_SORT_FINAL_MODIFIED = "ui_sort_final_modified"
    const val UI_SORT_NAME_A_Z = "ui_sort_name_a_z"
    const val UI_SORT_NAME_Z_A = "ui_sort_name_z_a"

    const val NOTIFICATION_ACTION_LOG = "notification_action_log"
    const val NOTIFICATION_ACTION_DOCUMENT = "notification_action_document"
    const val NOTIFICATION_ACTION_BOOKMARK = "notification_action_bookmark"

    var ifAgreePrivacy = false
        get() {
            return AppPreferences.getInstance().getBoolean("ifAgreePrivacy", field)
        }
        set(value) {
            field = value
            AppPreferences.getInstance().put("ifAgreePrivacy", value, true)
        }
    var haveSaveDemo = false
        get() {
            return AppPreferences.getInstance().getBoolean("haveSaveDemo", field)
        }
        set(value) {
            field = value
            AppPreferences.getInstance().put("haveSaveDemo", value, true)
        }

    var haveGuideGesture = false
        get() {
            return AppPreferences.getInstance().getBoolean("haveGuideGesture", field)
        }
        set(value) {
            field = value
            AppPreferences.getInstance().put("haveGuideGesture", value, true)
        }

}