![]() |
D.I.T. ( Do It Tizen! )
1.0.0
Samsung Software Membership
|
Ongoing Notification API 를 사용하기 위해 포함해야 하는 헤더이다. More...
Data Structures | |
struct | OngoingNotification |
OngoingNotification 모듈에 대한 구조체이다. OngoingNotification 모듈은 다양한 방식으로 알림을 설정 할 수 있다. More... | |
struct | OngoingNotificationExtend |
Functions | |
const char * | OngoingNotificationErrorCheck (int errCode) |
Ongoing Notification API에서 발생하는 Error Code들을 확인 해준다. More... | |
OngoingNotification | NewOngoingNotification (void) |
새로운 OngoingNotification 객체를 생성한다. More... | |
void | DestroyOngoingNotification (OngoingNotification this_gen) |
생성한 OngoingNotification 객체를 소멸 시킨다. More... | |
bool | OngoingNotificationShow (OngoingNotification this_gen) |
생성한 OngoingNotification을 Notification 바에 등록한다. More... | |
bool | OngoingNotificationHide (OngoingNotification this_gen) |
Notification 바에 등록되어 있는 OngoingNotification을 삭제한다. More... | |
bool | setOngoingNotificationTitle (OngoingNotification this_gen, String title) |
OngoingNotification 객체의 title을 설정 한다. More... | |
bool | setOngoingNotificationText (OngoingNotification this_gen, String text) |
OngoingNotification 객체의 text를 설정 한다. More... | |
bool | setOngoingNotificationIcon (OngoingNotification this_gen, String imagePath) |
OngoingNotification 객체의 아이콘 이미지를 설정 한다. More... | |
bool | setOngoingNotificationSound (OngoingNotification this_gen, String soundPath) |
OngoingNotification 객체의 알림음을 설정 한다. More... | |
bool | setOngoingNotificationProgress (OngoingNotification this_gen, double progress) |
OngoingNotification 객체의 진행률을 설정 한다. More... | |
bool | updateOngoingNotification (OngoingNotification this_gen) |
새로 설정한 OngoingNotification 객체의 정보들을 새로 적용 한다. More... | |
Ongoing Notification API 를 사용하기 위해 포함해야 하는 헤더이다.
struct OngoingNotificationExtend |
Data Fields | ||
---|---|---|
String | imagePath | |
struct _OngoingNotification | Ongoingnotification | |
notification_h | ongoingnotification_handle | |
String | soundPath | |
String | text | |
String | title | |
bool | visible |
void DestroyOngoingNotification | ( | OngoingNotification | this_gen | ) |
생성한 OngoingNotification 객체를 소멸 시킨다.
[in] | this_gen | 소멸시킬 OngoingNotification 객체 |
[out] | null |
void |
OngoingNotification NewOngoingNotification | ( | void | ) |
새로운 OngoingNotification 객체를 생성한다.
[in] | void | |
[out] | null |
OngoingNotification |
const char * OngoingNotificationErrorCheck | ( | int | errCode | ) |
Ongoing Notification API에서 발생하는 Error Code들을 확인 해준다.
[in] | errCode | 확인 하고자 하는 Error Code |
[out] | null |
NOTIFICATION_ERROR_NONE | : Success |
NOTIFICATION_ERROR_INVALID_PARAMETER | : Invalid parameter |
NOTIFICATION_ERROR_OUT_OF_MEMORY | : Out of memory |
NOTIFICATION_ERROR_IO_ERROR | : I/O error |
NOTIFICATION_ERROR_PERMISSION_DENIED | : Permission denied |
NOTIFICATION_ERROR_FROM_DB | : Error from DB query |
NOTIFICATION_ERROR_ALREADY_EXIST_ID | : Already exist private ID |
NOTIFICATION_ERROR_FROM_DBUS | : Error from DBus |
NOTIFICATION_ERROR_NOT_EXIST_ID | : Not exist private ID |
NOTIFICATION_ERROR_SERVICE_NOT_READY | : No response from notification service |
NOTIFICATION_ERROR_UNKNOWN | : Unknown error occurred |
bool OngoingNotificationHide | ( | OngoingNotification | this_gen | ) |
Notification 바에 등록되어 있는 OngoingNotification을 삭제한다.
[in] | this_gen | Notification 바에서 삭제할 OngoingNotification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool OngoingNotificationShow | ( | OngoingNotification | this_gen | ) |
생성한 OngoingNotification을 Notification 바에 등록한다.
[in] | this_gen | Notification 바에 등록할 OngoingNotification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setOngoingNotificationIcon | ( | OngoingNotification | this_gen, |
String | imagePath | ||
) |
OngoingNotification 객체의 아이콘 이미지를 설정 한다.
[in] | this_gen | image를 설정할 OngoingNotification 객체 |
[in] | imagePath | OngoingNotification의 image 파일 경로 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setOngoingNotificationProgress | ( | OngoingNotification | this_gen, |
double | progress | ||
) |
OngoingNotification 객체의 진행률을 설정 한다.
[in] | this_gen | 진행률을 설정할 OngoingNotification 객체 |
[in] | progress | OngoingNotification의 진행률 (0.0 ~ 1.0) |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setOngoingNotificationSound | ( | OngoingNotification | this_gen, |
String | soundPath | ||
) |
OngoingNotification 객체의 알림음을 설정 한다.
[in] | this_gen | 알림음을 설정할 OngoingNotification 객체 |
[in] | soundPath | OngoingNotification의 sound 파일 경로 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setOngoingNotificationText | ( | OngoingNotification | this_gen, |
String | text | ||
) |
OngoingNotification 객체의 text를 설정 한다.
[in] | this_gen | text를 설정할 OngoingNotification 객체 |
[in] | text | OngoingNotification의 text |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setOngoingNotificationTitle | ( | OngoingNotification | this_gen, |
String | title | ||
) |
OngoingNotification 객체의 title을 설정 한다.
[in] | this_gen | title을 설정할 OngoingNotification 객체 |
[in] | title | OngoingNotification의 title |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool updateOngoingNotification | ( | OngoingNotification | this_gen | ) |
새로 설정한 OngoingNotification 객체의 정보들을 새로 적용 한다.
[in] | this_gen | 정보를 새로 적용 할 OngoingNotsification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |