diff -r 41137c634688 -r 1e96dbdff71c commondrm/drmqtencryptor/drmencyptor.cpp --- a/commondrm/drmqtencryptor/drmencyptor.cpp Tue Jul 06 14:34:12 2010 +0300 +++ b/commondrm/drmqtencryptor/drmencyptor.cpp Wed Aug 18 10:03:14 2010 +0300 @@ -83,16 +83,21 @@ iDeleteWMDRMDBAct = new QAction(tr("&Delete WMDRM DB"), this); iDeleteWMDRMDBAct->setStatusTip(tr("Delete WMDRM Database rights.")); + iDeleteOMADRMDBAct = new QAction(tr("&Delete OMADRM DB"), this); + iDeleteOMADRMDBAct->setStatusTip(tr("Delete OMADRM Database rights.")); + menuBar()->addAction(iSetDRMClockAct); menuBar()->addAction(iGetDRMClockAct); menuBar()->addAction(iEncryptAct); menuBar()->addAction(iDeleteWMDRMDBAct); + menuBar()->addAction(iDeleteOMADRMDBAct); menuBar()->addAction(iLaunchBrowserAct); connect(iSetDRMClockAct, SIGNAL(triggered()), this, SLOT(setDRMClock())); connect(iGetDRMClockAct, SIGNAL(triggered()), this, SLOT(getDRMClock())); connect(iEncryptAct, SIGNAL(triggered()), this, SLOT(startEncrypt())); connect(iDeleteWMDRMDBAct, SIGNAL(triggered()), this, SLOT(deleteWmDrmDB())); + connect(iDeleteOMADRMDBAct, SIGNAL(triggered()), this, SLOT(deleteOmaDrmDB())); connect(iLaunchBrowserAct, SIGNAL(triggered()), this, SLOT(launchBrowser())); //setDRMClockButton = new QPushButton("Set DRM Clock", this); @@ -609,6 +614,16 @@ } } +void DRMEncryptor::deleteOmaDrmDB() + { + RDRMRightsClient client; + User::LeaveIfError(client.Connect()); + client.DeleteAll(); + client.Close(); + } + + + void DRMEncryptor::launchBrowser() { /*_LIT( KTestDrmFile, "c:\\data\\others\\sd_water003.dcf" );