// Name : Config.h
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
@interface Config : NSObject {
}
//configuration section...
extern NSString *SiteURL;
extern NSString *SiteAPIURL;
extern NSString *DatabaseName;
extern NSString *DatabasePath;
extern NSMutableDictionary *dicGlobal;
extern NSString *userId;
// for facebook id
extern NSString *kAppId ;
//for GPS current location
extern float core_latitude, core_longitude;
extern CLLocationManager *locationManager; //
extern CLLocation *currentLocation; // For Latitude & Longitude
extern CLLocationCoordinate2D coordinates; //
@end
---------------------------
//Name : Config.m
#import "Config.h"
@implementation Config
NSString *SiteURL = @"http://192.168.0.182/rewards";
NSString *SiteAPIURL = @"http://192.168.0.182/rewards/";
NSString *ShowPerPage = @"20";
NSString *DatabaseName = @"Rewards.sqlite";
NSString *DatabasePath;
NSMutableDictionary *dicGlobal;
NSString *userId;
NSString *kAppId = @"210130729074560";
// for GPS current location
float core_latitude = 0.0f, core_longitude = 0.0f;
CLLocationManager *locationManager; //
CLLocation *currentLocation; // For Latitude & Longitude
CLLocationCoordinate2D coordinates; //
@end
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
@interface Config : NSObject {
}
//configuration section...
extern NSString *SiteURL;
extern NSString *SiteAPIURL;
extern NSString *DatabaseName;
extern NSString *DatabasePath;
extern NSMutableDictionary *dicGlobal;
extern NSString *userId;
// for facebook id
extern NSString *kAppId ;
//for GPS current location
extern float core_latitude, core_longitude;
extern CLLocationManager *locationManager; //
extern CLLocation *currentLocation; // For Latitude & Longitude
extern CLLocationCoordinate2D coordinates; //
@end
---------------------------
//Name : Config.m
#import "Config.h"
@implementation Config
NSString *SiteURL = @"http://192.168.0.182/rewards";
NSString *SiteAPIURL = @"http://192.168.0.182/rewards/";
NSString *ShowPerPage = @"20";
NSString *DatabaseName = @"Rewards.sqlite";
NSString *DatabasePath;
NSMutableDictionary *dicGlobal;
NSString *userId;
NSString *kAppId = @"210130729074560";
// for GPS current location
float core_latitude = 0.0f, core_longitude = 0.0f;
CLLocationManager *locationManager; //
CLLocation *currentLocation; // For Latitude & Longitude
CLLocationCoordinate2D coordinates; //
@end
No comments:
Post a Comment