emailservices/nmailagent/inc/nmmailagent.h
changeset 59 16ed8d08d0b1
parent 54 997a02608b3a
child 65 478bc57ad291
equal deleted inserted replaced
54:997a02608b3a 59:16ed8d08d0b1
    85 
    85 
    86     void enableAlertTone();
    86     void enableAlertTone();
    87 
    87 
    88     void indicatorActivated(const QString &type, const QVariantMap &data);
    88     void indicatorActivated(const QString &type, const QVariantMap &data);
    89 
    89 
    90     void valueChanged(const XQSettingsKey& key, const QVariant& value);
    90     void valueChanged(const XQSettingsKey &key, const QVariant &value);
    91 
    91 
       
    92     void delayedMailboxCreated(const NmId mailboxId);
       
    93     
    92 private:
    94 private:
    93 
    95 
    94     void initMailboxStatus();
    96     void initMailboxStatus();
    95 
    97 
    96     bool updateUnreadCount(const NmId &mailboxId, NmMailboxInfo &mailboxInfo);
    98     bool updateUnreadCount(const NmId &mailboxId, NmMailboxInfo &mailboxInfo);
    97 
    99 
    98     int getOutboxCount(const NmId &mailboxId);
   100     int getOutboxCount(const NmId &mailboxId, const NmId &outboxId);
    99 
   101 
   100     NmMailboxInfo *getMailboxByType(const QString &type);
   102     NmMailboxInfo *getMailboxByType(const QString &type);
   101 
   103 
   102     int getFreeIndicatorIndex();
   104     int getFreeIndicatorIndex();
   103 
   105 
   137     
   139     
   138     void deleteStoredMailboxActivity(const NmId &mailboxId);
   140     void deleteStoredMailboxActivity(const NmId &mailboxId);
   139 
   141 
   140     bool launchMailbox(quint64 mailboxId);
   142     bool launchMailbox(quint64 mailboxId);
   141 
   143 
       
   144     void handleMessageCreatedEvent(const NmId &folderId, const QList<NmId> &messageIds,
       
   145         const NmId &mailboxId, bool &updateNeeded, bool &activate);
       
   146 
       
   147     void handleMessageChangedEvent(const NmId &folderId, const QList<NmId> &messageIds,
       
   148         const NmId &mailboxId, bool &updateNeeded, bool &activate);
       
   149 
       
   150     void handleMessageDeletedEvent(const NmId &folderId, const QList<NmId> &messageIds,
       
   151         const NmId &mailboxId, bool &updateNeeded, bool &activate);
       
   152 
   142 private: // data
   153 private: // data
   143 
   154 
   144     HbIndicator *mIndicator;
   155     HbIndicator *mIndicator; // Owned;
   145     XQSystemToneService *mSystemTone;
   156     XQSystemToneService *mSystemTone; // Owned.
   146     NmDataPluginFactory *mPluginFactory;
   157     NmDataPluginFactory *mPluginFactory; // Not owned (singleton).
   147     QList<NmMailboxInfo*> mMailboxes;
   158     QList<NmMailboxInfo*> mMailboxes;
   148     CHWRMVibra *mVibra; // Owned
   159     CHWRMVibra *mVibra; // Owned.
   149     bool mAlertToneAllowed;
   160     bool mAlertToneAllowed;
   150     int mLastOutboxCount;
   161     int mLastOutboxCount;
   151     bool mUnreadIndicatorActive;
   162     bool mUnreadIndicatorActive;
   152     XQSettingsManager *mSettingManager;
   163     XQSettingsManager *mSettingManager; // Owned.
   153     int mSilenceMode;
   164     int mSilenceMode;
   154 };
   165 };
   155 
   166 
   156 
   167 
   157 #endif // NMMAILAGENT_H
   168 #endif // NMMAILAGENT_H