protected:
virtual Evas_Object *getBubbleContent();
- virtual std::string getTime();
- virtual std::string getMsgType();
private:
// IBubbleViewItemListener:
return *bubble;
}
-std::string ComposeListItem::getTime()
-{
- return TimeUtils::makeBubbleTimeString(time(nullptr));
-}
-
-std::string ComposeListItem::getMsgType()
-{
- return msg("IDS_MSGF_BODY_MMS");
-}
-
void ComposeListItem::deleteEntity(BubbleEntity &entity)
{
auto it = std::find(m_BubbleEntityList.begin(), m_BubbleEntityList.end(), &entity);
protected:
virtual Evas_Object *getBubbleContent() = 0;
- virtual std::string getTime() = 0;
- virtual std::string getMsgType() = 0;
void updateBubblePart();
private:
- virtual std::string getText(ListItem &item, const char *part);
virtual Evas_Object *getContent(ListItem &item, const char *part);
virtual bool getFilter(ListItem &item, void *key);
namespace
{
ListItemStyleRef sentStyle = ListItemStyle::create("sentbubble");
-
const char *bubbleContentPart = "bubble.content";
- const char *timeTextPart = "info.time";
- const char *msgType = "msg.type";
}
ComposeListViewItem::ComposeListViewItem()
}
-std::string ComposeListViewItem::getText(ListItem &item, const char *part)
-{
- if(!strcmp(part, timeTextPart))
- return getTime();
- else if(!strcmp(part, msgType))
- return getMsgType();
-
- return "";
-}
-
Evas_Object *ComposeListViewItem::getContent(ListItem &item, const char *part)
{
if(!strcmp(part, bubbleContentPart))