* Fixed incorrect spacing and blank lines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,8 +5,14 @@
|
|||||||
#ifndef _NOTIFICATION_H
|
#ifndef _NOTIFICATION_H
|
||||||
#define _NOTIFICATION_H
|
#define _NOTIFICATION_H
|
||||||
|
|
||||||
|
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
|
|
||||||
|
|
||||||
|
class BBitmap;
|
||||||
|
class BList;
|
||||||
|
|
||||||
|
|
||||||
// notification types
|
// notification types
|
||||||
enum notification_type {
|
enum notification_type {
|
||||||
B_INFORMATION_NOTIFICATION,
|
B_INFORMATION_NOTIFICATION,
|
||||||
@@ -15,58 +21,57 @@ enum notification_type {
|
|||||||
B_PROGRESS_NOTIFICATION
|
B_PROGRESS_NOTIFICATION
|
||||||
};
|
};
|
||||||
|
|
||||||
class BBitmap;
|
|
||||||
class BList;
|
|
||||||
|
|
||||||
class BNotification {
|
class BNotification {
|
||||||
public:
|
public:
|
||||||
BNotification(notification_type type);
|
BNotification(notification_type type);
|
||||||
~BNotification();
|
~BNotification();
|
||||||
|
|
||||||
notification_type Type() const;
|
notification_type Type() const;
|
||||||
|
|
||||||
const char* Application() const;
|
const char* Application() const;
|
||||||
void SetApplication(const char* app);
|
void SetApplication(const char* app);
|
||||||
|
|
||||||
const char* Title() const;
|
const char* Title() const;
|
||||||
void SetTitle(const char* title);
|
void SetTitle(const char* title);
|
||||||
|
|
||||||
const char* Content() const;
|
const char* Content() const;
|
||||||
void SetContent(const char* content);
|
void SetContent(const char* content);
|
||||||
|
|
||||||
const char* MessageID() const;
|
const char* MessageID() const;
|
||||||
void SetMessageID(const char* id);
|
void SetMessageID(const char* id);
|
||||||
|
|
||||||
float Progress() const;
|
float Progress() const;
|
||||||
void SetProgress(float progress);
|
void SetProgress(float progress);
|
||||||
|
|
||||||
const char* OnClickApp() const;
|
const char* OnClickApp() const;
|
||||||
void SetOnClickApp(const char* app);
|
void SetOnClickApp(const char* app);
|
||||||
|
|
||||||
entry_ref* OnClickFile() const;
|
entry_ref* OnClickFile() const;
|
||||||
void SetOnClickFile(const entry_ref* file);
|
void SetOnClickFile(const entry_ref* file);
|
||||||
|
|
||||||
BList* OnClickRefs() const;
|
BList* OnClickRefs() const;
|
||||||
void AddOnClickRef(const entry_ref* ref);
|
void AddOnClickRef(const entry_ref* ref);
|
||||||
|
|
||||||
BList* OnClickArgv() const;
|
BList* OnClickArgv() const;
|
||||||
void AddOnClickArg(const char* arg);
|
void AddOnClickArg(const char* arg);
|
||||||
|
|
||||||
BBitmap* Icon() const;
|
BBitmap* Icon() const;
|
||||||
void SetIcon(BBitmap* icon);
|
void SetIcon(BBitmap* icon);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
notification_type fType;
|
notification_type fType;
|
||||||
char* fAppName;
|
char* fAppName;
|
||||||
char* fTitle;
|
char* fTitle;
|
||||||
char* fContent;
|
char* fContent;
|
||||||
char* fID;
|
char* fID;
|
||||||
float fProgress;
|
float fProgress;
|
||||||
char* fApp;
|
char* fApp;
|
||||||
entry_ref* fFile;
|
entry_ref* fFile;
|
||||||
BList* fRefs;
|
BList* fRefs;
|
||||||
BList* fArgv;
|
BList* fArgv;
|
||||||
BBitmap* fBitmap;
|
BBitmap* fBitmap;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // _NOTIFICATION_H
|
#endif // _NOTIFICATION_H
|
||||||
|
|||||||
Reference in New Issue
Block a user