src/socialnetworkinterface.cpp
int SocialNetworkInterfacePrivate::guessType(const QString &identifier, int type,
                                             const QSet<FilterInterface *> &filters)
{
    Q_UNUSED(identifier)
    Q_UNUSED(type)
    Q_UNUSED(filters)
    return -1;
}
/*
    Depending on the implementation of SocialNetwork, this method
    could be reimplemented in order for the SocialNetwork class to guess
    the type property (SocialNetworkModelInterface::nodeType) that should
    be set.

    An example is with Twitter, where this type property is mandatory, while
    sometimes useless. If an user requests a list of tweets, we automatically
    knows that the type refers to an user, because the "tweet" connection
    can only relates to an user. In TwitterInterface, this method is then
    implemented to automatically return TwitterInterface::User when the
    filter contains a filter that is used to request tweets.

    This method is also used to automatically sets the nodeType property
    of SocialNetworkModel, saving the user to set it.

    Guessing type can be done with the identifier, the type the user set (that
    should most of the time be SocialNetworkInterface::Unknown) and the
    list of filters that is used (ie the 3 properties of a
    SocialNetworkModelInterface)
*/
Depending on the implementation of SocialNetwork, this method
could be reimplemented in order for the SocialNetwork class to guess
the type property (SocialNetworkModelInterface::nodeType) that should
be set.

An example is with Twitter, where this type property is mandatory, while
sometimes useless. If an user requests a list of tweets, we automatically
knows that the type refers to an user, because the "tweet" connection
can only relates to an user. In TwitterInterface, this method is then
implemented to automatically return TwitterInterface::User when the
filter contains a filter that is used to request tweets.

This method is also used to automatically sets the nodeType property
of SocialNetworkModel, saving the user to set it.

Guessing type can be done with the identifier, the type the user set (that
should most of the time be SocialNetworkInterface::Unknown) and the
list of filters that is used
Depending on the implementation of SocialNetwork this method could be reimplemented in order for the SocialNetwork class to guess the type property ( SocialNetworkModelInterface :: nodeType ) that should be set . An example is with Twitter where this type property is mandatory while sometimes useless . If an user requests a list of tweets we automatically knows that the type refers to an user because the " tweet " connection can only relates to an user . In TwitterInterface this method is then implemented to automatically return TwitterInterface :: User when the filter contains a filter that is used to request tweets . This method is also used to automatically sets the nodeType property of SocialNetworkModel saving the user to set it . Guessing type can be done with the identifier the type the user set ( that should most of the time be SocialNetworkInterface :: Unknown ) and the list of filters that is used
int SocialNetworkInterfacePrivate::guessType(const QString &identifier, int type,
                                             const QSet<FilterInterface *> &filters)
{
    Q_UNUSED(identifier)
    Q_UNUSED(type)
    Q_UNUSED(filters)
    return -1;
}
int SocialNetworkInterfacePrivate :: guessType ( const QString & identifier , int type , const QSet < FilterInterface * > & filters ) { Q_UNUSED ( identifier ) Q_UNUSED ( type ) Q_UNUSED ( filters ) return -1 ; }
Depending on the implementation of SocialNetwork, this method
could be reimplemented in order for the SocialNetwork class to guess
the type property (SocialNetworkModelInterface::nodeType) that should
be set.
Depending on the implementation of SocialNetwork this method could be reimplemented in order for the SocialNetwork class to guess the type property ( SocialNetworkModelInterface :: nodeType ) that should be set .