Commit e94df79d authored by Volker Krause's avatar Volker Krause
Browse files

Add android.provider.CalendarContract constants

parent a58f224f
Pipeline #186052 passed with stage
in 1 minute and 34 seconds
......@@ -47,6 +47,7 @@ ecm_generate_headers(KAndroidExtras_android_FORWARDING_HEADERS
HEADER_NAMES
Activity
AndroidTypes
CalendarContract
ContentResolver
Context
Intent
......
......@@ -7,6 +7,7 @@
// list all headers here that have no .cpp file
// this only serves as a guarantee that these headers actually compile
#include "androidtypes.h"
#include "calendarcontract.h"
#include "manifestpermission.h"
#include "openablecolumns.h"
#include "settings.h"
......@@ -17,6 +17,10 @@ JNI_TYPE(android, content, Intent)
JNI_TYPE(android, database, Cursor)
JNI_NESTED_TYPE(android, Manifest, permission)
JNI_TYPE(android, net, Uri)
JNI_NESTED_TYPE(android, provider, CalendarContract, AttendeesColumns)
JNI_NESTED_TYPE(android, provider, CalendarContract, CalendarColumns)
JNI_NESTED_TYPE(android, provider, CalendarContract, EventsColumns)
JNI_NESTED_TYPE(android, provider, CalendarContract, RemindersColumns)
JNI_TYPE(android, provider, OpenableColumns)
JNI_TYPE(android, provider, Settings)
......
/*
SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KANDROIDEXTRAS_CALENDARCONTRACT_H
#define KANDROIDEXTRAS_CALENDARCONTRACT_H
#include <KAndroidExtras/AndroidTypes>
#include <KAndroidExtras/JniObject>
#include <KAndroidExtras/JniProperty>
#include <KAndroidExtras/JavaTypes>
namespace KAndroidExtras {
/** CalendarContracts.EventColumns wrapper. */
class CalendarColumns
{
JNI_UNMANAGED_OBJECT(CalendarColumns, android::provider::CalendarContract_CalendarColumns)
JNI_CONSTANT(jint, CAL_ACCESS_CONTRIBUTOR)
JNI_CONSTANT(jint, CAL_ACCESS_EDITOR)
JNI_CONSTANT(jint, CAL_ACCESS_FREEBUSY)
JNI_CONSTANT(jint, CAL_ACCESS_NONE)
JNI_CONSTANT(jint, CAL_ACCESS_OVERRIDE)
JNI_CONSTANT(jint, CAL_ACCESS_OWNER)
JNI_CONSTANT(jint, CAL_ACCESS_READ)
JNI_CONSTANT(jint, CAL_ACCESS_RESPOND)
JNI_CONSTANT(jint, CAL_ACCESS_ROOT)
};
/** CalendarContracts.EventColumns wrapper. */
class EventsColumns
{
JNI_UNMANAGED_OBJECT(EventsColumns, android::provider::CalendarContract_EventsColumns)
JNI_CONSTANT(jint, ACCESS_CONFIDENTIAL)
JNI_CONSTANT(jint, ACCESS_DEFAULT)
JNI_CONSTANT(jint, ACCESS_PRIVATE)
JNI_CONSTANT(jint, ACCESS_PUBLIC)
JNI_CONSTANT(jint, AVAILABILITY_BUSY)
JNI_CONSTANT(jint, AVAILABILITY_FREE)
JNI_CONSTANT(jint, AVAILABILITY_TENTATIVE)
};
/** CalendarContracts.AttendeesColumns wrapper. */
class AttendeesColumns
{
JNI_UNMANAGED_OBJECT(AttendeesColumns, android::provider::CalendarContract_AttendeesColumns)
JNI_CONSTANT(jint, ATTENDEE_STATUS_ACCEPTED)
JNI_CONSTANT(jint, ATTENDEE_STATUS_DECLINED)
JNI_CONSTANT(jint, ATTENDEE_STATUS_INVITED)
JNI_CONSTANT(jint, ATTENDEE_STATUS_NONE)
JNI_CONSTANT(jint, ATTENDEE_STATUS_TENTATIVE)
JNI_CONSTANT(jint, RELATIONSHIP_ATTENDEE)
JNI_CONSTANT(jint, RELATIONSHIP_NONE)
JNI_CONSTANT(jint, RELATIONSHIP_ORGANIZER)
JNI_CONSTANT(jint, RELATIONSHIP_PERFORMER)
JNI_CONSTANT(jint, RELATIONSHIP_SPEAKER)
JNI_CONSTANT(jint, TYPE_NONE)
JNI_CONSTANT(jint, TYPE_OPTIONAL)
JNI_CONSTANT(jint, TYPE_REQUIRED)
JNI_CONSTANT(jint, TYPE_RESOURCE)
};
/** CalendarContract.RemindersColumns wrapper. */
class RemindersColumns
{
JNI_UNMANAGED_OBJECT(RemindersColumns, android::provider::CalendarContract_RemindersColumns)
JNI_CONSTANT(jint, METHOD_ALARM)
JNI_CONSTANT(jint, METHOD_ALERT)
JNI_CONSTANT(jint, METHOD_DEFAULT)
JNI_CONSTANT(jint, METHOD_EMAIL)
JNI_CONSTANT(jint, METHOD_SMS)
};
}
#endif // KANDROIDEXTRAS_OPENABLECOLUMNS_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment