Q_OBJECT
public:
/**
- * @brief Friend class for ContactManagerPrivate.
- */
- friend class ContactManagerPrivate;
-
- /**
* @brief Constructor
*
* @param parent QObject
*/
void requestContactGuids();
-/*******************************************************************************
-* SIGNALS
-******************************************************************************/
-signals:
- /**
- * @brief Signal for contacts guids added.
- *
- * Contact guids has Facebook ID as key and Guid as value.. Guid is a globally
- * unique ID of a contact, which can be used with other datastores.
- * @param contactGuids list of contact guids
- */
- void contactsGuidsAdded(const QHash<QString, QString> &contactGuids);
-
/******************************************************************************
* DATA MEMBERS
******************************************************************************/
{
qDebug() << __PRETTY_FUNCTION__;
- m_parent = static_cast<ContactManager *>(parent);
-
const QString MAEMO5_MANAGER_NAME = "maemo5";
QStringList availableManagers = QContactManager::availableManagers();
/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
+public:
/**
* @brief Returns contact's guid from contact's facebook ID.
*
* DATA MEMBERS
******************************************************************************/
private:
- ContactManager *m_parent; ///< Parent
QContactManager *m_manager; ///< Contact manager
QHash<QString, QString> m_contactGuids; ///< List of contact GUIDS
};
}
}
-QHash<QString, ListItem *> ListView::listItems() const
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- return m_listItems;
-}
-
ListItem *ListView::selectedItem()
{
qDebug() << __PRETTY_FUNCTION__;
ListItem *listItemAt(int index);
/**
- * @brief Returns all list items.
- *
- * Item ID is key.
- * @return list of ListItems
- */
- QHash<QString, ListItem *> listItems() const;
-
- /**
* @brief Prepends item to view and item list.
*
* @param key user ID