Namespaces
Variants
Actions
Revision as of 04:19, 11 October 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Leitura de IMSI, em Qt para Symbian

Jump to: navigation, search
Archived.png
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

Archived:Mobile Extensions used by this article are deprecated. Instead use the Qt Mobility APIs.
Dados do artigo

Testado com
Aparelho(s): Nokia 5800 XpressMusic

Compatibilidade
Plataforma(s): S60 3rd Edition, FP1, FP2
S60 5th Edition

Artigo
Palavras-chave: XQSysInfo::imsi()
Tradução:
Última alteração feita por hamishwillee em 11 Oct 2012

Contents

Introdução

Este trecho de código mostra como obter o número de IMSI(inglês) em Qt. A classe XQSysInfo, provêr informações sobre o dispositivo. O método imsi() da classe XQSysInfo retorna o número de IMSI.

Este código requer capacidade de ReadDeviceData. Deste modo auto-assinatura não é possível de ser realizada, uma vez que um Developer certificate é necessário.

Pré-requisitos

Cabeçalhos requeridos

 #include <XQSysInfo>

Arquivo .pro

symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
 
symbian:TARGET.CAPABILITY = ReadDeviceData

Código

XQSysInfo *sysInfo = new XQSysInfo();
/* show IMSI on label */
QLabel *IMSI = new QLabel("IMSI: "+sysInfo->imsi());


Código exemplo

310 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved