--- a/emailuis/nmindicatorplugin/inc/nmindicator.h Fri Apr 16 14:51:52 2010 +0300
+++ b/emailuis/nmindicatorplugin/inc/nmindicator.h Mon May 03 12:23:15 2010 +0300
@@ -26,17 +26,20 @@
{
public:
NmMailboxInfo();
-
+
public:
NmId mId;
QString mName;
NmSyncState mSyncState;
NmConnectState mConnectState;
int mUnreadMails;
+ int mOutboxMails;
};
class NmIndicator : public HbIndicatorInterface
{
+ Q_OBJECT
+
public:
NmIndicator(const QString &indicatorType);
@@ -46,19 +49,37 @@
bool handleInteraction(InteractionType type);
QVariant indicatorData(int role) const;
+ HbIndicatorInterface::Category category() const;
+ bool acceptIcon(bool sending);
+ void updateGlobalStatus(bool sending);
protected: // From HbIndicatorInterface
bool handleClientRequest(RequestType type, const QVariant ¶meter);
+signals:
+
+ void indicatorIconLost();
+ void globalStatusChanged(bool sending);
+ void mailboxLaunched(quint64 mailboxId);
+
+private slots:
+
+ void hideSendIndicator();
+
private:
- bool showMailbox(quint64 mailboxId);
void storeMailboxData(QVariant mailboxData);
+ void showSendProgress();
+ bool isSending() const;
private:
NmMailboxInfo mMailbox;
+ bool mShowIndicator;
+ bool mSendingState;
+ bool mShowSendProgress;
+ bool mActive;
};
#endif // NMINDICATOR_H