![]() |
D.I.T. ( Do It Tizen! )
1.0.0
Samsung Software Membership
|
Notification API가 정의되어있다. More...
#include "Interface/Notification.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <dlog.h>
Functions | |
const char * | NotificationErrorCheck (int errCode) |
Notification API에서 발생하는 Error Code들을 확인 해준다. More... | |
Notification | NewNotification (void) |
새로운 Notification 객체를 생성한다. More... | |
void | DestroyNotification (Notification this_gen) |
생성한 Notification 객체를 소멸 시킨다. More... | |
bool | NotificationShow (Notification this_gen) |
생성한 Notification을 Notification 바에 등록한다. More... | |
bool | NotificationHide (Notification this_gen) |
Notification 바에 등록되어 있는 Notification을 삭제한다. More... | |
bool | setNotificationTitle (Notification this_gen, String title) |
Notification 객체의 title을 설정 한다. More... | |
bool | setNotificationText (Notification this_gen, String text) |
Notification 객체의 text를 설정 한다. More... | |
bool | setNotificationIcon (Notification this_gen, String imagePath) |
Notification 객체의 아이콘 이미지를 설정 한다. More... | |
bool | setNotificationSound (Notification this_gen, String soundPath) |
Notification 객체의 알림음을 설정 한다. More... | |
bool | updateNotification (Notification this_gen) |
새로 설정한 Notification 객체의 정보들을 새로 적용 한다. More... | |
void DestroyNotification | ( | Notification | this_gen | ) |
생성한 Notification 객체를 소멸 시킨다.
[in] | this_gen | 소멸시킬 Notification 객체 |
[out] | null |
void |
Notification NewNotification | ( | void | ) |
새로운 Notification 객체를 생성한다.
[in] | void | |
[out] | null |
Notification |
const char* NotificationErrorCheck | ( | int | errCode | ) |
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 NotificationHide | ( | Notification | this_gen | ) |
Notification 바에 등록되어 있는 Notification을 삭제한다.
[in] | this_gen | Notification 바에서 삭제할 Notification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool NotificationShow | ( | Notification | this_gen | ) |
생성한 Notification을 Notification 바에 등록한다.
[in] | this_gen | Notification 바에 등록할 Notification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setNotificationIcon | ( | Notification | this_gen, |
String | imagePath | ||
) |
Notification 객체의 아이콘 이미지를 설정 한다.
[in] | this_gen | image를 설정할 Notification 객체 |
[in] | imagePath | Notification의 image 파일 경로 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setNotificationSound | ( | Notification | this_gen, |
String | soundPath | ||
) |
Notification 객체의 알림음을 설정 한다.
[in] | this_gen | 알림음을 설정할 Notification 객체 |
[in] | soundPath | Notification의 sound 파일 경로 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setNotificationText | ( | Notification | this_gen, |
String | text | ||
) |
Notification 객체의 text를 설정 한다.
[in] | this_gen | text를 설정할 Notification 객체 |
[in] | text | Notification의 text |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool setNotificationTitle | ( | Notification | this_gen, |
String | title | ||
) |
Notification 객체의 title을 설정 한다.
[in] | this_gen | title을 설정할 Notification 객체 |
[in] | title | Notification의 title |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |
bool updateNotification | ( | Notification | this_gen | ) |
새로 설정한 Notification 객체의 정보들을 새로 적용 한다.
[in] | this_gen | 정보를 새로 적용 할 Notification 객체 |
[out] | null |
bool | 함수의 성공 여부를 반환한다. 실패시 false를 반환하며 상세한 원인을 Log로 출력한다. |