Skip to content

Instantly share code, notes, and snippets.

@confile
Created June 12, 2015 21:28
Show Gist options
  • Save confile/54905109b8419b51c5d5 to your computer and use it in GitHub Desktop.
Save confile/54905109b8419b51c5d5 to your computer and use it in GitHub Desktop.
CameraManager.m
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Users/mg/Documents/Grails/GGTS3.6.3-SR1-2/buddyis-main/src/main/java/buddyis/core/app/photoEditor/cameraManager/CameraManager.java
//
#include "CameraManager.h"
#include "IOSClass.h"
#include "J2ObjC_source.h"
#include "java/lang/Enum.h"
#include "java/lang/IllegalArgumentException.h"
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@interface BuddyisCoreAppPhotoEditorCameraManagerCameraManager : NSObject
@end
__attribute__((unused)) static void BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *self, NSString *__name, jint __ordinal);
__attribute__((unused)) static BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *new_BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(NSString *__name, jint __ordinal) NS_RETURNS_RETAINED;
@implementation BuddyisCoreAppPhotoEditorCameraManagerCameraManager
+ (jboolean)ALLOW_EDIT {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_ALLOW_EDIT;
}
+ (jboolean)SAVE_TO_PHOTO_ALBUM {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SAVE_TO_PHOTO_ALBUM;
}
+ (const J2ObjcClassInfo *)__metadata {
static const J2ObjcMethodInfo methods[] = {
{ "getPhotoWorkaround", NULL, "V", 0x401, NULL, NULL },
};
static const J2ObjcFieldInfo fields[] = {
{ "ALLOW_EDIT", "ALLOW_EDIT", 0x19, "Z", NULL, NULL, .constantValue.asBOOL = BuddyisCoreAppPhotoEditorCameraManagerCameraManager_ALLOW_EDIT },
{ "SAVE_TO_PHOTO_ALBUM", "SAVE_TO_PHOTO_ALBUM", 0x19, "Z", NULL, NULL, .constantValue.asBOOL = BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SAVE_TO_PHOTO_ALBUM },
};
static const char *inner_classes[] = {"Lbuddyis.core.app.photoEditor.cameraManager.CameraManager$SourceType;"};
static const J2ObjcClassInfo _BuddyisCoreAppPhotoEditorCameraManagerCameraManager = { 2, "CameraManager", "buddyis.core.app.photoEditor.cameraManager", NULL, 0x609, 1, methods, 2, fields, 0, NULL, 1, inner_classes, NULL, NULL };
return &_BuddyisCoreAppPhotoEditorCameraManagerCameraManager;
}
@end
J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(BuddyisCoreAppPhotoEditorCameraManagerCameraManager)
J2OBJC_INITIALIZED_DEFN(BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum)
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_values_[2];
@implementation BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum
+ (BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *)CAMERA_IMAGE {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_CAMERA_IMAGE;
}
+ (BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *)ALBUM_IMAGE {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_ALBUM_IMAGE;
}
- (instancetype)initWithNSString:(NSString *)__name
withInt:(jint)__ordinal {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(self, __name, __ordinal);
return self;
}
IOSObjectArray *BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_values() {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initialize();
return [IOSObjectArray arrayWithObjects:BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_values_ count:2 type:BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_class_()];
}
+ (IOSObjectArray *)values {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_values();
}
+ (BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *)valueOfWithNSString:(NSString *)name {
return BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_valueOfWithNSString_(name);
}
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_valueOfWithNSString_(NSString *name) {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initialize();
for (int i = 0; i < 2; i++) {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *e = BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_values_[i];
if ([name isEqual:[e name]]) {
return e;
}
}
@throw [[JavaLangIllegalArgumentException alloc] initWithNSString:name];
return nil;
}
- (id)copyWithZone:(NSZone *)zone {
return self;
}
+ (void)initialize {
if (self == [BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum class]) {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_CAMERA_IMAGE = new_BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(@"CAMERA_IMAGE", 0);
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_ALBUM_IMAGE = new_BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(@"ALBUM_IMAGE", 1);
J2OBJC_SET_INITIALIZED(BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum)
}
}
+ (const J2ObjcClassInfo *)__metadata {
static const J2ObjcFieldInfo fields[] = {
{ "CAMERA_IMAGE", "CAMERA_IMAGE", 0x4019, "Lbuddyis.core.app.photoEditor.cameraManager.CameraManager$SourceType;", &BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_CAMERA_IMAGE, NULL, },
{ "ALBUM_IMAGE", "ALBUM_IMAGE", 0x4019, "Lbuddyis.core.app.photoEditor.cameraManager.CameraManager$SourceType;", &BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_ALBUM_IMAGE, NULL, },
};
static const char *superclass_type_args[] = {"Lbuddyis.core.app.photoEditor.cameraManager.CameraManager$SourceType;"};
static const J2ObjcClassInfo _BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum = { 2, "SourceType", "buddyis.core.app.photoEditor.cameraManager", "CameraManager", 0x4019, 0, NULL, 2, fields, 1, superclass_type_args, 0, NULL, NULL, "Ljava/lang/Enum<Lbuddyis/core/app/photoEditor/cameraManager/CameraManager$SourceType;>;" };
return &_BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum;
}
@end
void BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *self, NSString *__name, jint __ordinal) {
(void) JavaLangEnum_initWithNSString_withInt_(self, __name, __ordinal);
}
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *new_BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(NSString *__name, jint __ordinal) {
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum *self = [BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum alloc];
BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum_initWithNSString_withInt_(self, __name, __ordinal);
return self;
}
J2OBJC_CLASS_TYPE_LITERAL_SOURCE(BuddyisCoreAppPhotoEditorCameraManagerCameraManager_SourceTypeEnum)
#pragma clang diagnostic pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment