akonadi/contact
22 #include "qwincedialer.h"
28 #include <klocalizedstring.h>
30 QWinCEDialer::QWinCEDialer(
const QString &applicationName)
31 : QDialer( applicationName )
35 QWinCEDialer::~QWinCEDialer()
39 bool QWinCEDialer::dialNumber(
const QString &number)
42 PHONEMAKECALLINFO phonecallinfo;
43 WCHAR wnumber[TAPIMAXDESTADDRESSSIZE];
46 int numchars = number.toWCharArray( wnumber );
47 wnumber[numchars] =
'\0';
49 memset( &phonecallinfo, 0,
sizeof( phonecallinfo ) );
50 phonecallinfo.cbSize =
sizeof( phonecallinfo );
51 phonecallinfo.dwFlags = PMCF_PROMPTBEFORECALLING;
52 phonecallinfo.pszDestAddress = wnumber;
53 phonecallinfo.pszAppName = NULL;
54 phonecallinfo.pszCalledParty = NULL;
55 phonecallinfo.pszComment = NULL;
57 retval = PhoneMakeCall( &phonecallinfo );
59 mErrorMessage = i18n(
"Could not call phone number %1", number );
66 bool QWinCEDialer::sendSms(
const QString &number,
const QString &text)
69 mErrorMessage = i18n(
"Sending an SMS is currently not supported on WinCE" );
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:49 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.