Logo Search packages:      
Sourcecode: kmess version File versions  Download package

LikeBack Class Reference

#include <likeback.h>

List of all members.

Detailed Description

System to Get Quick Feedback from Beta-Testers.

This system allows users to communicate theire liking of the application to its developers. Thus, developers know what theire users prefer of theire applications, what should be enhanced, etc.

Basically, how does it work? Whenever the user notice something good he appreciate or something he do not like, do not understand, do not find polished... he can send a few short words to the developers to tell them what he like or do not like. It is only two or three clicks away. It is fast and efficient.

This greatly lowers the communication barrier between the application developers and the application users. It makes the developers understand and satisfy better the needs of the users.

The LikeBack system has 5 components:

Here is an example of code to call to quickly setup LikeBack on the client:
     // Instanciate the LikeBack system, and show the first-use information dialog if the button-bar is shown:
     LikeBack *likeBack = new LikeBack(LikeBack::AllButtons, LikeBack::isDevelopmentVersion(KGlobal::mainComponent().aboutData->version())); // Show button-bar only in beta-versions
     likeBack->setServer("myapp.kde.org", "/likeback/send.php");
     likeBack->setAcceptedLanguages(QStringList::split(";", "en;fr"), i18n("Please write in English or French."));

     // Comment the following line once you are sure all your windows have a name:

     // This line should be called early in your KMainWindow constructor because it references actionCollection().
     // It should be called before createGUI() for the action to be plugged in the Help menu:

See also:
Visit http://basket.kde.org/likeback.php for more information, screenshots, a tutorial, hints, return of experiences, and to download the server-side developer interface...
Sebastien Laout <slaout@linux62.org>

Definition at line 74 of file likeback.h.

Public Types

enum  Button {
  Like = 0x01, Dislike = 0x02, Bug = 0x04, Feature = 0x10,
  AllButtons = Like | Dislike | Bug | Feature, DefaultButtons = Like | Dislike
enum  WindowListing { NoListing = 0, WarnUnnamedWindows = 1, AllWindows = 2 }

Public Slots

void disableBar ()
void enableBar ()
void execCommentDialog (Button type=AllButtons, const QString &initialComment="", const QString &windowPath="", const QString &context="")
void setUserWantsToShowBar (bool showBar)
void showInformationMessage ()

Public Member Functions

const KAboutData * aboutData ()
QStringList acceptedLocales ()
Button buttons ()
KConfig * config ()
void createActions (KActionCollection *parent=0)
QString emailAddress ()
bool emailAddressAlreadyProvided ()
bool enabledBar ()
QString hostName ()
quint16 hostPort ()
bool isBugActive () const
bool isDislikeActive () const
bool isFeatureActive () const
bool isLikeActive () const
 LikeBack (Button buttons=DefaultButtons, bool showBarByDefault=false, KConfig *config=0, const KAboutData *aboutData=0)
QString remotePath ()
void setAcceptedLanguages (const QStringList &locales)
void setEmailAddress (const QString &address, bool userProvided=false)
void setServer (const QString &hostName, const QString &remotePath, quint16 hostPort=80)
void setWindowNamesListing (WindowListing windowListing)
bool userWantsToShowBar ()
WindowListing windowNamesListing ()
 ~LikeBack ()

Static Public Member Functions

static QString activeWindowPath ()
static bool isDevelopmentVersion (const QString &version)

Private Slots

void execCommentDialogFromHelp ()

Private Member Functions

void fetchUserEmail ()

Private Attributes

LikeBackPrivate * d

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index