src/twitter/twitterinterface.cpp
int TwitterInterfacePrivate::detectTypeFromData(const QVariantMap &data) const
{
    // it's possible that we've already tagged the type already
    if (data.contains(NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE)) {
        TwitterInterface::ContentItemType taggedType = static_cast<TwitterInterface::ContentItemType>(data.value(NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE).toInt());
        if (taggedType > TwitterInterface::Unknown) {
            return taggedType;
        }
    }

    return TwitterInterface::Unknown;
}
/*!
    \internal

    Attempt to detect which type of object the given \a data represents.
    This function makes use of some fairly inexact heuristics, and only
    supports tweets, places and users.
*/
\internal
Attempt to detect which type of object the given \a data represents.
This function makes use of some fairly inexact heuristics, and only
supports tweets, places and users.
\ internal Attempt to detect which type of object the given \ a data represents . This function makes use of some fairly inexact heuristics and only supports tweets places and users .
int TwitterInterfacePrivate::detectTypeFromData(const QVariantMap &data) const
{
    if (data.contains(NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE)) {
        TwitterInterface::ContentItemType taggedType = static_cast<TwitterInterface::ContentItemType>(data.value(NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE).toInt());
        if (taggedType > TwitterInterface::Unknown) {
            return taggedType;
        }
    }
    return TwitterInterface::Unknown;
}
int TwitterInterfacePrivate :: detectTypeFromData ( const QVariantMap & data ) const { if ( data . contains ( NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE ) ) { TwitterInterface :: ContentItemType taggedType = static_cast < TwitterInterface :: ContentItemType > ( data . value ( NEMOQMLPLUGINS_SOCIAL_CONTENTITEMTYPE ) . toInt ( ) ) ; if ( taggedType > TwitterInterface :: Unknown ) { return taggedType ; } } return TwitterInterface :: Unknown ; }
\internal
Attempt to detect which type of object the given \a data represents.
\ internal Attempt to detect which type of object the given \ a data represents .
// it's possible that we've already tagged the type already