InfoPopper


Adding Support For InfoPopper

 

General use

The normal end-user of InfoPopper doesn't have to do anything, more or less. Once InfoPopper is started, other apps send messages to it that are displayed. Depending on the type of message, clicking it can do various things. The sending app decides what should happen when a message is clicked.

 

Settings

There are some settings you can adjust to make InfoPopper look the way you want. The settings file if located at /boot/home/config/settings/BeClan/InfoPopper/settings.

Name Type Description
windowWidth float Width of window.
displayTime int32 Default display duration.
titlePosition int16

You can select one of two layout schemes, described below.

Value Description
0 Title above icon
1 All text right of icon
iconSize int16 Size of icon.

Developer info

To display a message, you send a message to the InfoPopper. The message needs to contain a number of fields, and can optionally contain more to specify more of how the message should be displayed and associate actions with it. Listed below you'll find a list of all the available fields.

The message should have a what value of InfoPopper::AddMessage (defined in libim/InfoPopper.h), or you could send scripting messages. The property is 'message'.

InfoPopper app-sig: application/x-vnd.beclan.InfoPopper

You can also use hey to add messages:

hey InfoPopper create message with app="MyApp" and title="Woot" and content="Hejsan"
hey InfoPopper create message with title="Ze title" and content="This iz a message. It iz a good ouane." 
   and iconRef="file(/boot/home/config/settings/im_kit/icons/Available)" and app="My app"

Message fields

Name Type Description
app string Required. The name of the application. Will be displayed above the rest of the message. Not guaranteed to be shown for each message, several messages could be grouped under a single 'app' header.
title string Required. Message header.
content string Required. The actual message
type int8 Optional. Describes the type of message, which in turns decides how it will look.
Value Description
0 Information
1 Important
2 Error
3 Progress - don't forget to add the progress field.