-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathNotificationIcon.cpp
More file actions
39 lines (37 loc) · 1.65 KB
/
NotificationIcon.cpp
File metadata and controls
39 lines (37 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "displayapp/screens/NotificationIcon.h"
#include "displayapp/screens/Symbols.h"
using namespace Pinetime::Applications::Screens;
const char* NotificationIcon::GetIcon(bool newNotificationAvailable) {
if (newNotificationAvailable)
return Symbols::info;
else
return "";
}
// TODO: does this really belong here?
const char* NotificationIcon::GetCategoryIcon(Pinetime::Controllers::NotificationManager::Categories category) {
switch (category) {
case Pinetime::Controllers::NotificationManager::Categories::SimpleAlert:
return Symbols::bell;
case Pinetime::Controllers::NotificationManager::Categories::Email:
return Symbols::envelope;
case Pinetime::Controllers::NotificationManager::Categories::News:
return Symbols::newspaper;
case Pinetime::Controllers::NotificationManager::Categories::IncomingCall:
return Symbols::phone;
case Pinetime::Controllers::NotificationManager::Categories::MissedCall:
return Symbols::phoneSlash;
case Pinetime::Controllers::NotificationManager::Categories::Sms:
return Symbols::smsBubble;
case Pinetime::Controllers::NotificationManager::Categories::VoiceMail:
return Symbols::voicemail;
case Pinetime::Controllers::NotificationManager::Categories::Schedule:
return Symbols::clock;
case Pinetime::Controllers::NotificationManager::Categories::HighProriotyAlert:
return Symbols::warningTriangle;
case Pinetime::Controllers::NotificationManager::Categories::InstantMessage:
return Symbols::messageBubble;
case Pinetime::Controllers::NotificationManager::Categories::Unknown:
default:
return Symbols::questionCircle;
}
}